From 86e66c11fc0c41af489fa4433d5a59aa0ee625c4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 22 May 2024 13:33:01 +0800 Subject: [PATCH] 1 --- addons/alioss/config.php | 4 ++-- addons/shopro/controller/Index.php | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/alioss/config.php b/addons/alioss/config.php index 4f75a00..5ba903c 100755 --- a/addons/alioss/config.php +++ b/addons/alioss/config.php @@ -207,7 +207,7 @@ return [ 'title' => 'API接口使用云存储', 'type' => 'bool', 'content' => [], - 'value' => '1', + 'value' => '0', 'rule' => 'required', 'msg' => '', 'tip' => '', @@ -223,7 +223,7 @@ return [ 'index' => '前台', 'admin' => '后台', ], - 'value' => 'api,index,admin', + 'value' => 'admin', 'rule' => '', 'msg' => '', 'tip' => '', diff --git a/addons/shopro/controller/Index.php b/addons/shopro/controller/Index.php index cc9008f..7a97c36 100755 --- a/addons/shopro/controller/Index.php +++ b/addons/shopro/controller/Index.php @@ -60,7 +60,8 @@ class Index extends Common 'app' => [ 'name' => $shopConfig['name'], 'logo' => $shopConfig['logo'], - 'cdnurl' => cdnurl('', true), +// 'cdnurl' => cdnurl('', true), + 'cdnurl' => $this->request->domain(), 'version' => $shopConfig['version'], 'user_protocol' => $shopConfig['user_protocol'], 'privacy_protocol' => $shopConfig['privacy_protocol'], @@ -74,6 +75,7 @@ class Index extends Common 'payment' => $platformConfig['payment']['methods'], 'recharge_payment' => sheep_config('shop.recharge_withdraw.recharge.methods'), // 充值支持的支付方式 'share' => $platformConfig['share'], + 'wechat_auth_login' => false ], 'template' => $template, 'chat' => $chatConfig