mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { app } from "../App";
|
||||
import { TbGEntity } from "../config/data/schema";
|
||||
import PlayerPetData from "../data/PlayerPetData";
|
||||
import ResourceData from "../data/ResourceData";
|
||||
import { GUI } from "../ui/UIConfig";
|
||||
@@ -141,6 +142,24 @@ export interface PetEquipForgingOV{
|
||||
}
|
||||
|
||||
|
||||
//礼包每天充值记录
|
||||
export interface GiftRecord{
|
||||
giftId:number; //礼包Id
|
||||
playerId:number; //玩家Id
|
||||
giftCfgId:number; //礼包配置表Id
|
||||
giftCfgName; //礼包名称
|
||||
giftCfgRewards:TbGEntity.TReward[]; //礼包奖励
|
||||
giftCfgPrice:number; //礼包价格
|
||||
giftBuyingTime:number; //礼包购买时间戳
|
||||
}
|
||||
export interface GiftDayRecord{
|
||||
giftDayId:number; //充值Id
|
||||
playerId:number; //玩家Id
|
||||
giftId:number; //礼包Id
|
||||
giftCfgId:number; //礼包配置表Id
|
||||
}
|
||||
|
||||
|
||||
export const API = {
|
||||
|
||||
/********** debugger *****************/
|
||||
@@ -179,5 +198,10 @@ export const API = {
|
||||
PetEquipForgingUp: async () => RData(await app.api.post(`/game/equip/forging/up`),true) as EquipForgingBench, //升级锻造台
|
||||
PetEquipUseSpeed: async (resType:number) => RData(await app.api.post(`/game/equip/use/speed/${resType}`),true) as EquipForgingBench, //加速锻造台升级
|
||||
|
||||
/*********** 礼包接口 ******************/
|
||||
GetGiftRecord: async () => RData(await app.api.get(`/game/gift/record/all`),false) as GiftRecord[], //查询当天购买记录
|
||||
GetGiftDayRecord: async () => RData(await app.api.get(`/game/gift/record/day`),false) as GiftDayRecord[], //查询当天购买记录
|
||||
BuyGift: async (giftId:number) => RData(await app.api.post(`/game/gift/buy/${giftId}`),true) as Boolean, //查询当天购买记录
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user