Explorar o código

任务bug修复

cyzhao hai 10 meses
pai
achega
560d4ab3b1
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      Gameserver/App/model/User/Ins_TaskStep_Active.php

+ 5 - 2
Gameserver/App/model/User/Ins_TaskStep_Active.php

@@ -133,8 +133,11 @@ class Ins_TaskStep_Active extends Object_ext {
                 $gateId = $para0;
                 $gateInfo = ctx()->gates->GateList->$gateId;
                 $state = $gateInfo->tz_state;
-
-                return $state;
+                if($state >= $para1){
+                    return 1;
+                }
+                
+                return 0;
             case Enum_ActiveTaskCmdType::RankPrize_Num:
                 $arr = ctx()->privateState->rankReward_drawed_MainGate;
                 $num = count($arr);