| 123456789101112131415161718192021222324252627282930313233 | <?php// +—————————————————————————————————————————————————————————————————————// | Created by Yunbao// +—————————————————————————————————————————————————————————————————————// | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.// +—————————————————————————————————————————————————————————————————————// | Author: https://gitee.com/yunbaokeji// +—————————————————————————————————————————————————————————————————————// | Date: 2022-04-30// +—————————————————————————————————————————————————————————————————————namespace app\admin\controller;use cmf\controller\AdminBaseController;class DialogController extends AdminBaseController{    public function initialize()    {    }    public function map()    {        $location = $this->request->param('location');        $location = explode(',', $location);        $lng      = empty($location[0]) ? 116.424966 : $location[0];        $lat      = empty($location[1]) ? 39.907851 : $location[1];        $this->assign(['lng' => $lng, 'lat' => $lat]);        return $this->fetch();    }}
 |