From de0ec3ecfdc152b2a04a343960551d0f93be5e98 Mon Sep 17 00:00:00 2001 From: lcc <805383944@qq.com> Date: Mon, 28 Jul 2025 10:36:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E4=BF=A1=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/admin/config/wechat.php | 5 ++++- agent/admin/controllers/auto/Config.php | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/agent/admin/config/wechat.php b/agent/admin/config/wechat.php index c34b31c7..d8a7579b 100644 --- a/agent/admin/config/wechat.php +++ b/agent/admin/config/wechat.php @@ -3,4 +3,7 @@ if ( ! defined('BASEPATH')) exit('No direct script access allowed'); //服务号-车卖场 $config['default']['appid'] = 'wx42cfb5a705233394'; -$config['default']['appSecret'] = 'a34f842ce9ad0f3ec732590e36e15c10'; \ No newline at end of file +$config['default']['appSecret'] = 'a34f842ce9ad0f3ec732590e36e15c10'; +//测试号 +//$config['default']['appid'] = 'wx10561f0e5ea2951f'; +//$config['default']['appSecret'] = '25874b9592b5b89f6ca4c3f508aec214'; \ No newline at end of file diff --git a/agent/admin/controllers/auto/Config.php b/agent/admin/controllers/auto/Config.php index 7dafb168..676b2a02 100644 --- a/agent/admin/controllers/auto/Config.php +++ b/agent/admin/controllers/auto/Config.php @@ -27,7 +27,8 @@ class Config extends BaseController 'timestamp' => $sign_package['timestamp'], // 必填,生成签名的时间戳 'nonceStr' => $sign_package['nonceStr'], // 必填,生成签名的随机串 'signature' => $sign_package['signature'],// 必填,签名 - 'jsApiList' => ['chooseImage', 'uploadImage', 'getLocation', 'openLocation','hideMenuItems','hideAllNonBaseMenuItem'] + 'jsApiList' => ['chooseImage', 'uploadImage', 'getLocation', + 'openLocation','hideMenuItems','hideAllNonBaseMenuItem','hideOptionMenu','showAllNonBaseMenuItem'] ]; $this->return_response($data); }