提交 cc06304f 编写于 作者: G gongfuxiang

微信网页授权插件优化

上级 51ec7c6e
......@@ -78,11 +78,16 @@ class AuthService
return DataReturn($ret['msg'], -1);
}
// 获取用户信息
$ret = self::RemoteUserInfo($ret['data']);
if($ret['code'] != 0)
// 获取插件配置
$ret = PluginsService::PluginsData('weixinwebauthorization');
if($ret['code'] == 0 && isset($ret['data']['auth_type']) && $ret['data']['auth_type'] == 1)
{
return DataReturn($ret['msg'], -1);
// 获取用户信息
$ret = self::RemoteUserInfo($ret['data']);
if($ret['code'] != 0)
{
return DataReturn($ret['msg'], -1);
}
}
// 处理用户数据
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册