Commit e36d7549 by 冷斌

fix bug

parent 14f2c398
...@@ -2251,7 +2251,8 @@ class Api_User extends PhalApi_Api ...@@ -2251,7 +2251,8 @@ class Api_User extends PhalApi_Api
$rs['msg'] = '您的登陆状态失效,请重新登陆!'; $rs['msg'] = '您的登陆状态失效,请重新登陆!';
return $rs; return $rs;
} }
if (!$this->_getPayImage($uid)) { $data = $this->_getPayImage($uid);
if (!$data) {
DI()->notorm->users_auth_pay->insert([ DI()->notorm->users_auth_pay->insert([
'uid' => $uid, 'uid' => $uid,
'reason' => '', 'reason' => '',
...@@ -2261,10 +2262,16 @@ class Api_User extends PhalApi_Api ...@@ -2261,10 +2262,16 @@ class Api_User extends PhalApi_Api
'wx_pay' => $this->wx_pay, 'wx_pay' => $this->wx_pay,
]); ]);
} else { } else {
DI()->notorm->users_auth_pay->where("uid={$uid}")->update([ if ($data['status'] == 0) {
'alipay_pay' => $this->alipay_pay, $rs['code'] = 1001;
'wx_pay' => $this->wx_pay, $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'] = []; $rs['info'] = [];
......
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