Commit e36d7549 by 冷斌

fix bug

parent 14f2c398
......@@ -2251,7 +2251,8 @@ class Api_User extends PhalApi_Api
$rs['msg'] = '您的登陆状态失效,请重新登陆!';
return $rs;
}
if (!$this->_getPayImage($uid)) {
$data = $this->_getPayImage($uid);
if (!$data) {
DI()->notorm->users_auth_pay->insert([
'uid' => $uid,
'reason' => '',
......@@ -2261,11 +2262,17 @@ class Api_User extends PhalApi_Api
'wx_pay' => $this->wx_pay,
]);
} else {
if ($data['status'] == 0) {
$rs['code'] = 1001;
$rs['msg'] = '不能重复提交';
} else {
DI()->notorm->users_auth_pay->where("uid={$uid}")->update([
'status' => 0,
'alipay_pay' => $this->alipay_pay,
'wx_pay' => $this->wx_pay,
]);
}
}
$rs['info'] = [];
return $rs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment