Browse Source

创建家族需要实名

lizhen_gitee 1 year ago
parent
commit
8144c2a900
1 changed files with 5 additions and 0 deletions
  1. 5 0
      application/api/controller/Family.php

+ 5 - 0
application/api/controller/Family.php

@@ -112,6 +112,11 @@ class Family extends Api
     public function guildSaveInfo() {
         Db::startTrans();
         try {
+
+            if($this->auth->is_auth != 2){
+                $this->error('请先完成实名认证');
+            }
+
             $guild_id     = input("guild_id");     //公会id
             $guild_name   = input("guild_name");   //公会名
             $guild_image  = input("guild_image");  //logo