|
|
@@ -522,10 +522,18 @@ class UserClass extends BaseClass
|
|
|
$user = self::getByOpenId($openId, $merchantId);
|
|
|
}
|
|
|
break;
|
|
|
+ case $userSource['system']['name']:
|
|
|
+ $sourceId = $userSource['system']['id'];
|
|
|
+ $mobile = isset($userInfo['mobile']) && !empty($userInfo['mobile']) ? $userInfo['mobile'] : '';
|
|
|
+ $user = [];
|
|
|
+ if (!empty($mobile)) {
|
|
|
+ $user = self::getByCondition(['merchantId' => $merchantId, 'mobile' => $mobile]);
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
throw new \Exception('未知来源的用户');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//支付宝暂时获取不到很多客户信息不进行更新
|
|
|
if ($source == $userSource['alipay']['name']) {
|
|
|
if (!empty($user)) {
|