|
@@ -476,10 +476,10 @@ class User extends Api
|
|
|
Db::startTrans();
|
|
|
try {
|
|
|
$res1 = true;
|
|
|
- if ($nickname_auth) {
|
|
|
- if($nickname_auth == $user->nickname) {
|
|
|
- $this->error(__('与原昵称相同无需修改!'));
|
|
|
- }
|
|
|
+ if ($nickname_auth && $nickname_auth != $user->nickname) {
|
|
|
+// if($nickname_auth == $user->nickname) {
|
|
|
+// $this->error(__('与原昵称相同无需修改!'));
|
|
|
+// }
|
|
|
$user->nickname_auth = $nickname_auth;
|
|
|
// 添加昵称修改申请表
|
|
|
if(\app\common\model\NicknameAuth::where(["status"=>0,"user_id"=>$this->auth->id])->find()) $this->error("昵称已在审核中!请勿重复申请");
|
|
@@ -1415,4 +1415,9 @@ class User extends Api
|
|
|
|
|
|
$this->success('收集成功');
|
|
|
}
|
|
|
+
|
|
|
+ //查询真人认证动作
|
|
|
+ public function authpersontag() {
|
|
|
+
|
|
|
+ }
|
|
|
}
|