|
@@ -18,7 +18,6 @@ class App extends Base
|
|
|
$avatar = Dever::input('avatar');
|
|
|
$sex = Dever::input('gender');
|
|
|
$city = Dever::input('city');
|
|
|
- $mobile = Dever::input('mobile');
|
|
|
$title = Dever::input('title');
|
|
|
$birthday = Dever::input('birthday');
|
|
|
$province = Dever::input('province');
|
|
@@ -80,6 +79,27 @@ class App extends Base
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
+ # 修改手机号
|
|
|
+ public function update_mobile()
|
|
|
+ {
|
|
|
+ $uid = $this->check();
|
|
|
+ $mobile = Dever::load('passport/reg')->checkMobileExists(false, false);
|
|
|
+
|
|
|
+ $info = Dever::load('passport/user-one', $uid);
|
|
|
+
|
|
|
+ if ($info) {
|
|
|
+ $update['mobile'] = $mobile;
|
|
|
+ $update['where_id'] = $uid;
|
|
|
+ Dever::load('passport/user-update', $update);
|
|
|
+ } else {
|
|
|
+ Dever::alert('更新失败');
|
|
|
+ }
|
|
|
+
|
|
|
+ $result = $this->getSign($uid);
|
|
|
+
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 注册用户信息:app端已经拿到了openid了
|
|
|
*
|