|
@@ -167,6 +167,10 @@ class Applet extends Base
|
|
$update['mobile'] = $mobile;
|
|
$update['mobile'] = $mobile;
|
|
$update['bind'] = 1;
|
|
$update['bind'] = 1;
|
|
$update['where_id'] = $uid;
|
|
$update['where_id'] = $uid;
|
|
|
|
+ $name = '商城会员' . substr($mobile, -5);
|
|
|
|
+ if (!$info['username']) {
|
|
|
|
+ $info['username'] = $name;
|
|
|
|
+ }
|
|
Dever::db('passport/user')->update($update);
|
|
Dever::db('passport/user')->update($update);
|
|
|
|
|
|
$state = Dever::config('base', 'project')->regSendSms;
|
|
$state = Dever::config('base', 'project')->regSendSms;
|
|
@@ -181,6 +185,9 @@ class Applet extends Base
|
|
|
|
|
|
$result = $this->getSign($uid, $vid, $mobile);
|
|
$result = $this->getSign($uid, $vid, $mobile);
|
|
|
|
|
|
|
|
+ $info = Dever::load('passport/user-one', array('id' => $uid, 'clear' => true));
|
|
|
|
+ $result['user'] = $user;
|
|
|
|
+
|
|
return $result;
|
|
return $result;
|
|
}
|
|
}
|
|
|
|
|