From b27654d765c702c1dcb948de06c76acaf2f194eb Mon Sep 17 00:00:00 2001
From: xman <1946321327@qq.com>
Date: Fri, 25 Apr 2025 16:37:07 +0800
Subject: [PATCH] sth
---
application/admin/controller/statistics/Worker.php | 5 +++++
application/admin/view/statistics/worker/index.html | 4 ++--
application/extra/map.php | 5 +++++
3 files changed, 12 insertions(+), 2 deletions(-)
create mode 100644 application/extra/map.php
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