linwu 1 year ago
parent
commit
582643d9b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/mainapp/controller/My.php

+ 1 - 1
app/mainapp/controller/My.php

@@ -543,7 +543,7 @@ class My extends BaseController
         if (isIdCard($user->idcard) == false) {
             page_result(1, "请填写正确的身份证号。");
         }
-        if (empty($user->realname)) {
+        if (empty($user->nickname)) {
             page_result(1, "请填写姓名。");
         }
         $user->save([