Commit 494311b7 authored by jianghaiming's avatar jianghaiming

Merge branch 'feature-deliver210913' into test

parents 2a79ad60 fcf56420
...@@ -213,8 +213,14 @@ class UserService ...@@ -213,8 +213,14 @@ class UserService
if (!empty($check) && $check['status'] == 'failed') { if (!empty($check) && $check['status'] == 'failed') {
throw new BaseException(['code' => $check['code'], 'msg' => $check['reason']]); throw new BaseException(['code' => $check['code'], 'msg' => $check['reason']]);
} }
$jwUser = (new JwUser ())->getUserInfo(['mobile' => $mobile]);
$userId = '';
if (!empty($jwUser['data'])) {
$data = $jwUser['data'];
$userId = !empty($data['userId']) ? $data['userId'] : '';
}
$userInfo = UserWechatBind::getRecordMaster(['openid' => self::$openid]); $userInfo = UserWechatBind::getRecordMaster(['openid' => self::$openid]);
CommonService::activateDeliverer(['user_id' => $userInfo['user_id'],'phone' => $userInfo['phone']]); CommonService::activateDeliverer(['user_id' => $userId,'phone' => $mobile]);
$userInfo = array_merge($userInfo,self::saveWechatPhone($mobile,$userInfo)) ; $userInfo = array_merge($userInfo,self::saveWechatPhone($mobile,$userInfo)) ;
return $userInfo; return $userInfo;
} }
......
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