|
@@ -49,7 +49,7 @@ class Applet extends Base
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 一次性登录:通过code或者openid、sessionkey来注册用户,此时已经授权,可以直接拿到unioinid
|
|
|
|
|
|
+ * 一次性登录:通过code或者openid、sessionkey来注册用户,此时已经授权,可以直接拿到unioinid,相当于注册
|
|
*
|
|
*
|
|
* @return mixed
|
|
* @return mixed
|
|
*/
|
|
*/
|
|
@@ -60,11 +60,15 @@ class Applet extends Base
|
|
|
|
|
|
$data += $this->getWechatData($data['session_key']);
|
|
$data += $this->getWechatData($data['session_key']);
|
|
|
|
|
|
|
|
+ $mobile = Dever::input('mobile');
|
|
|
|
+ if ($mobile) {
|
|
|
|
+ $data['mobile'] = Dever::load('passport/reg')->checkMobileExists(false);
|
|
|
|
+ }
|
|
|
|
+
|
|
$data['username'] = Dever::input('nickname');
|
|
$data['username'] = Dever::input('nickname');
|
|
$data['avatar'] = Dever::input('avatarurl');
|
|
$data['avatar'] = Dever::input('avatarurl');
|
|
$data['sex'] = Dever::input('gender');
|
|
$data['sex'] = Dever::input('gender');
|
|
$data['city'] = Dever::input('city');
|
|
$data['city'] = Dever::input('city');
|
|
- //$data['mobile'] = Dever::input('mobile');
|
|
|
|
$data['province'] = Dever::input('province');
|
|
$data['province'] = Dever::input('province');
|
|
$data['country'] = Dever::input('country');
|
|
$data['country'] = Dever::input('country');
|
|
$user['county'] = Dever::input('county');
|
|
$user['county'] = Dever::input('county');
|