mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
调整PC下单支付不配置微信公众号appid使用pc登录的appid
This commit is contained in:
parent
3b83992edb
commit
621a71caed
@ -60,7 +60,13 @@ class WechatService
|
||||
$appId = isset($wechat['wechat_app_appid']) ? trim($wechat['wechat_app_appid']) : '';
|
||||
$appsecret = isset($wechat['wechat_app_appsecret']) ? trim($wechat['wechat_app_appsecret']) : '';
|
||||
} else {
|
||||
$appId = isset($wechat['wechat_appid']) ? trim($wechat['wechat_appid']) : '';
|
||||
$appId = null;
|
||||
if (request()->isPc()) {
|
||||
$appId = sys_config('wechat_open_app_id');
|
||||
}
|
||||
if (!$appId) {
|
||||
$appId = isset($wechat['wechat_appid']) ? trim($wechat['wechat_appid']) : '';
|
||||
}
|
||||
$appsecret = isset($wechat['wechat_appsecret']) ? trim($wechat['wechat_appsecret']) : '';
|
||||
}
|
||||
$config = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user