微信支付微信环境判断优化
parent
712b6e6aec
commit
e32ebb3647
|
|
@ -50,7 +50,7 @@ class Weixin
|
||||||
// 基础信息
|
// 基础信息
|
||||||
$base = [
|
$base = [
|
||||||
'name' => '微信', // 插件名称
|
'name' => '微信', // 插件名称
|
||||||
'version' => '1.1.5', // 插件版本
|
'version' => '1.1.6', // 插件版本
|
||||||
'apply_version' => '不限', // 适用系统版本描述
|
'apply_version' => '不限', // 适用系统版本描述
|
||||||
'apply_terminal'=> ['pc', 'h5', 'ios', 'android', 'weixin', 'qq'], // 适用终端 默认全部 ['pc', 'h5', 'app', 'alipay', 'weixin', 'baidu']
|
'apply_terminal'=> ['pc', 'h5', 'ios', 'android', 'weixin', 'qq'], // 适用终端 默认全部 ['pc', 'h5', 'app', 'alipay', 'weixin', 'baidu']
|
||||||
'desc' => '适用公众号+PC+H5+APP+微信小程序,即时到帐支付方式,买家的交易资金直接打入卖家账户,快速回笼交易资金。 <a href="https://pay.weixin.qq.com/" target="_blank">立即申请</a>', // 插件描述(支持html)
|
'desc' => '适用公众号+PC+H5+APP+微信小程序,即时到帐支付方式,买家的交易资金直接打入卖家账户,快速回笼交易资金。 <a href="https://pay.weixin.qq.com/" target="_blank">立即申请</a>', // 插件描述(支持html)
|
||||||
|
|
@ -186,7 +186,7 @@ class Weixin
|
||||||
$client_type = $this->GetApplicationClientType();
|
$client_type = $this->GetApplicationClientType();
|
||||||
|
|
||||||
// 微信中打开
|
// 微信中打开
|
||||||
if($client_type == 'pc' && IsWeixinEnv() && (empty($params['user']) || empty($params['user']['weixin_web_openid'])))
|
if(APPLICATION_CLIENT_TYPE == 'pc' && IsWeixinEnv() && (empty($params['user']) || empty($params['user']['weixin_web_openid'])))
|
||||||
{
|
{
|
||||||
exit(header('location:'.PluginsHomeUrl('weixinwebauthorization', 'pay', 'index', input())));
|
exit(header('location:'.PluginsHomeUrl('weixinwebauthorization', 'pay', 'index', input())));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue