提交 9aca0034 编写于 作者: D Devil

微信小程序用户授权优化

上级 2cbc9ec1
......@@ -281,10 +281,10 @@ class User extends Common
// 如果用户openid为空则绑定到用户下面
if(empty($user['weixin_openid']))
{
if(UserService::UserOpenidBind($user['id'], $result['data']['openid'], 'weixin_openid'))
if(wewe::UserOpenidBind($user['id'], $result['data']['openid'], 'weixin_openid'))
{
// 登录数据更新
self::UserLoginRecord($user['id'], true);
UserService::UserLoginRecord($user['id'], true);
// openid加入用户数据
$user['weixin_openid'] = $result['data']['openid'];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册