提交 8170ff07 编写于 作者: G gongfuxiang

微信支付优化

上级 600b0fc9
...@@ -511,8 +511,16 @@ class Weixin ...@@ -511,8 +511,16 @@ class Weixin
if($client_type == 'h5') if($client_type == 'h5')
{ {
// 微信中打开 // 微信中打开
// h5则使用NATIVE二维码的方式 if(IsWeixinEnv())
$type_all['h5'] = IsWeixinEnv() ? $type_all['weixin'] : $type_all['pc']; {
$type_all['h5'] = $type_all['weixin'];
} else {
// 非手机访问h5则使用NATIVE二维码的方式
if(!IsMobile())
{
$type_all['h5'] = $type_all['pc'];
}
}
} }
return isset($type_all[$client_type]) ? $type_all[$client_type] : ''; return isset($type_all[$client_type]) ? $type_all[$client_type] : '';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册