|
@@ -207,6 +207,7 @@ class FightProc {
|
|
|
|
|
|
UserProc::updateUserInfo();
|
|
UserProc::updateUserInfo();
|
|
$ret = array(
|
|
$ret = array(
|
|
|
|
+ 'tili'=> ctx()->baseInfo->tili,
|
|
'gates' => ctx()->gates,
|
|
'gates' => ctx()->gates,
|
|
);
|
|
);
|
|
return Resp::ok($ret);
|
|
return Resp::ok($ret);
|
|
@@ -278,13 +279,7 @@ class FightProc {
|
|
*/
|
|
*/
|
|
public static function GateChallengePriceReviced() {
|
|
public static function GateChallengePriceReviced() {
|
|
list($zhangjieId, $gateId) = req()->paras;
|
|
list($zhangjieId, $gateId) = req()->paras;
|
|
-
|
|
|
|
- $mo = GameConfig::gate_challenge_getItem($zhangjieId);
|
|
|
|
- my_Assert($mo != null, ErrCode::err_const_no);
|
|
|
|
-
|
|
|
|
-// $list = explode(',', $mo->gates);
|
|
|
|
-// my_Assert(in_array($gateId,$list), ErrCode::err_const_no);
|
|
|
|
-
|
|
|
|
|
|
+
|
|
$gateMo = GameConfig::gate_getItem($gateId);
|
|
$gateMo = GameConfig::gate_getItem($gateId);
|
|
my_Assert($gateMo != null, ErrCode::err_const_no);
|
|
my_Assert($gateMo != null, ErrCode::err_const_no);
|
|
|
|
|
|
@@ -293,6 +288,8 @@ class FightProc {
|
|
}
|
|
}
|
|
|
|
|
|
my_Assert(!in_array($gateId, ctx()->gates->GatesChallengeRecord->$zhangjieId), ErrCode::user_Gate_GatePriceHasReceive);
|
|
my_Assert(!in_array($gateId, ctx()->gates->GatesChallengeRecord->$zhangjieId), ErrCode::user_Gate_GatePriceHasReceive);
|
|
|
|
+ my_Assert(in_array($gateMo->challengeUnlockId, ctx()->gates->GatesChallengeRecord->$zhangjieId), ErrCode::user_Gate_GateNoUnlock);
|
|
|
|
+
|
|
ctx()->gates->GatesChallengeRecord->$zhangjieId[] = $gateId;
|
|
ctx()->gates->GatesChallengeRecord->$zhangjieId[] = $gateId;
|
|
|
|
|
|
StoreProc::AddMultiItemInStore($gateMo->reward_win);
|
|
StoreProc::AddMultiItemInStore($gateMo->reward_win);
|