提交 56a84584 编写于 作者: D devil_gong

微信小程序支付异常处理

上级 a61bc22e
......@@ -161,9 +161,12 @@ class Weixin
}
// 微信中打开
if(!empty($_SERVER['HTTP_USER_AGENT']) && stripos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false && empty($params['user']['weixin_web_openid']))
if(in_array(APPLICATION_CLIENT_TYPE, ['pc', 'h5']))
{
exit(header('location:'.PluginsHomeUrl('weixinwebauthorization', 'pay', 'index', input())));
if(!empty($_SERVER['HTTP_USER_AGENT']) && stripos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false && empty($params['user']['weixin_web_openid']))
{
exit(header('location:'.PluginsHomeUrl('weixinwebauthorization', 'pay', 'index', input())));
}
}
// 获取支付参数
......
......@@ -60,7 +60,7 @@ App({
// 请求地址
request_url: "{{request_url}}",
//request_url: 'https://test.shopxo.net/',
request_url: 'https://test.shopxo.net/',
// 基础信息
application_title: "{{application_title}}",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册