zhangxiaobin vor 1 Jahr
Ursprung
Commit
b6afd94275
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      application/api/controller/Party.php

+ 2 - 2
application/api/controller/Party.php

@@ -1190,8 +1190,8 @@ class Party extends Common
         $userInfo = \app\common\model\User::field("noble,avatar,nickname,gender,level")->where(["id"=>$user_id])->find();
         if(!$userInfo) $this->error("用户信息获取失败!");
         // 国王防踢。
-        $noble_no = \app\common\model\NobleLevel::where(["id"=>$userInfo->noble])->value("level_no");
-        if(($item == 3 || $item == 4) && $noble_no == "p08PCcNB") {
+        $nobleLevel = \app\common\model\NobleLevel::where(["id"=>$userInfo->noble])->find();
+        if(($item == 3 || $item == 4) && $nobleLevel['fjft'] == 1) {
             $this->error("对方已开通国王贵族,踢出房间失败!");
         }