zhangxiaobin преди 1 година
родител
ревизия
b6afd94275
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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("对方已开通国王贵族,踢出房间失败!");
         }