提交 55c8e51b 编写于 作者: D devil_gong

1.6

上级 26073142
......@@ -127,14 +127,14 @@ class User extends Common
$user = UserService::UserInfo('alipay_openid', $this->data_post['openid']);
if(empty($user))
{
$result['nick_name'] = isset($this->data_post['nickName']) ? $this->data_post['nickName'] : '';
$this->data_post['nick_name'] = isset($this->data_post['nickName']) ? $this->data_post['nickName'] : '';
$this->data_post['gender'] = empty($this->data_post['gender']) ? 0 : ($this->data_post['gender'] == 'f') ? 1 : 2;
return UserService::AuthUserProgram($this->data_post, 'alipay_openid');
} else {
$user['is_mandatory_bind_mobile'] = intval(MyC('common_user_is_mandatory_bind_mobile'));
return DataReturn('授权成功', 0, $user);
}
return DataReturn(empty($this->data_post) ? '获取用户信息失败' : $result, -100);
return DataReturn('获取用户信息失败', -100);
}
/**
......@@ -187,7 +187,7 @@ class User extends Common
[
'checked_type' => 'empty',
'key_name' => 'iv',
'error_msg' => 'iv数据为空',
'error_msg' => 'iv为空,请重试',
]
];
$ret = ParamsChecked($this->data_post, $p);
......
......@@ -74,7 +74,7 @@ class Wechat
$data = json_decode($result, true);
if($data == NULL)
{
return '解析失败请重试!';
return '解析失败,请重试!';
}
if($data['watermark']['appid'] != $this->_appid )
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册