|
@@ -33,10 +33,38 @@ class FightProc {
|
|
|
return FightProc::EvolveUnlock();
|
|
|
case CmdCode::cmd_fight_plotSav: # 6806 剧情回存
|
|
|
return FightProc::PlotSav();
|
|
|
+ case CmdCode::cmd_fight_xunluoPrizeReceived: #6807 巡逻奖励领取
|
|
|
+ return FightProc::XunluoPrizeReceived();
|
|
|
default:
|
|
|
Err(ErrCode::cmd_err);
|
|
|
}
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 6807 巡逻奖励领取
|
|
|
+ * @return type
|
|
|
+ */
|
|
|
+ public static function XunluoPrizeReceived() {
|
|
|
+ list($type) = req()->paras;
|
|
|
+
|
|
|
+ $gateId = ctx()->gates->UnlockedGatesMaxId;
|
|
|
+ $gateMo = GameConfig::gate_getItem($gateId);
|
|
|
+ my_Assert($gateMo!=null, ErrCode::err_const_no);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if($type == 1){//巡逻
|
|
|
+ ctx()->gates->xunluo_StartTs = now();
|
|
|
+ } else {//快速巡逻
|
|
|
+ ctx()->gates->xunluo_quick_buyRecord += 1;
|
|
|
+ ctx()->baseInfo->Consume_tili(15);
|
|
|
+ }
|
|
|
+
|
|
|
+ UserProc::updateUserInfo();
|
|
|
+ $ret = array(
|
|
|
+ 'ok' => 1,
|
|
|
+ );
|
|
|
+ return Resp::ok($ret);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 剧情回存
|