|
@@ -65,6 +65,9 @@ class FightProc {
|
|
|
}
|
|
|
|
|
|
if($resultType){
|
|
|
+ if(ctx()->gates->GateList->$gateId->pass == 0){
|
|
|
+ ctx()->gates->GateList->$gateId->pass = 1;
|
|
|
+ }
|
|
|
StoreProc::AddMultiItemInStore($gateMo->reward_win);
|
|
|
$newGateId = $gateId+1;
|
|
|
if(!StlUtil::dictHasProperty(ctx()->gates->GateList, $newGateId)){
|
|
@@ -74,7 +77,7 @@ class FightProc {
|
|
|
$gate->GateId = $newGateId;
|
|
|
ctx()->gates->GateList->$newGateId = $gate;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
StoreProc::AddMultiItemInStore($gateMo->reward_fail);
|
|
|
}
|
|
@@ -82,8 +85,7 @@ class FightProc {
|
|
|
ctx()->baseInfo->Add_Gold($gold);
|
|
|
ctx()->baseInfo->Add_Exp($exp);
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
UserProc::updateUserInfo();
|
|
|
$ret = array(
|
|
|
'gates' => ctx()->gates,
|