diff --git a/application/admin/controller/statistics/Worker.php b/application/admin/controller/statistics/Worker.php index 3c2097a..afd5fc2 100644 --- a/application/admin/controller/statistics/Worker.php +++ b/application/admin/controller/statistics/Worker.php @@ -57,9 +57,14 @@ class Worker extends Backend */ public function index() { + + + //设置过滤方法 $this->request->filter(['strip_tags', 'trim']); if (false === $this->request->isAjax()) { + $appkey = config('map.baidu_app_key'); + $this->assign('mapkey',$appkey); return $this->view->fetch(); } //如果发送的来源是 Selectpage,则转发到 Selectpage diff --git a/application/admin/view/statistics/worker/index.html b/application/admin/view/statistics/worker/index.html index b98bd73..b851d2d 100644 --- a/application/admin/view/statistics/worker/index.html +++ b/application/admin/view/statistics/worker/index.html @@ -255,7 +255,7 @@ - + diff --git a/application/extra/map.php b/application/extra/map.php new file mode 100644 index 0000000..4b37e7f --- /dev/null +++ b/application/extra/map.php @@ -0,0 +1,5 @@ + 'UQjHtbQQoDQRpAE5QLGFvC8exM6rcu69' +]; \ No newline at end of file