|
@@ -26,11 +26,33 @@ class ShopProc {
|
|
return ShopProc::ShopBuyGift();
|
|
return ShopProc::ShopBuyGift();
|
|
case CmdCode::cmd_shop_BuyTili: # 6502 买体力
|
|
case CmdCode::cmd_shop_BuyTili: # 6502 买体力
|
|
return ShopProc::BuyTili();
|
|
return ShopProc::BuyTili();
|
|
|
|
+ case CmdCode::cmd_shop_GateGift_ShowGateId: # 6503 章节礼包 分页选中记录
|
|
|
|
+ return ShopProc::Shop_GateGift_ShowGateId();
|
|
default:
|
|
default:
|
|
Err(ErrCode::cmd_err);
|
|
Err(ErrCode::cmd_err);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 6503 章节礼包 分页选中记录
|
|
|
|
+ */
|
|
|
|
+ public static function Shop_GateGift_ShowGateId() {
|
|
|
|
+ list($gateId) = req()->paras;
|
|
|
|
+
|
|
|
|
+ my_Assert(StlUtil::dictHasProperty(ctx()->gates->GateList,$gateId), ErrCode::active_const_no_err);
|
|
|
|
+ $mo = GameConfig::shop_gategift_getItem($gateId);
|
|
|
|
+ my_Assert($mo != null, ErrCode::err_const_no);
|
|
|
|
+
|
|
|
|
+ ctx()->privateState->shop_gateGift_showGateId = $gateId;
|
|
|
|
+
|
|
|
|
+ UserProc::updateUserInfo();
|
|
|
|
+ return Resp::ok(array());
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 6502 买体力
|
|
|
|
+ * @return type
|
|
|
|
+ */
|
|
public static function BuyTili() {
|
|
public static function BuyTili() {
|
|
list($type) = req()->paras;
|
|
list($type) = req()->paras;
|
|
|
|
|