diff --git a/src/api_s2c/event/huangqijiuguan/ApiGiftRec.ts b/src/api_s2c/event/huangqijiuguan/ApiGiftRec.ts new file mode 100644 index 0000000..b2e309e --- /dev/null +++ b/src/api_s2c/event/huangqijiuguan/ApiGiftRec.ts @@ -0,0 +1,42 @@ +import { ApiCall } from "tsrpc"; +import { ReqGiftRec, ResGiftRec } from "../../../shared/protocols/event/huangqijiuguan/PtlGiftRec"; +import HQJGFun from "./fun"; + +export default async function (call: ApiCall) { + let hd = await HQJGFun.HdInfo(call, call.req.hdid); + if (!hd || Object.keys(hd).length <= 0) { + // 无此活动 + return call.error('', { code: -1, message: globalThis.lng.huodong_open_1 }) + } + + let gift = hd.data.gift.filter(i => i.id == call.req.giftid)[0]; + if (!gift || !gift.free) { + return call.error('', { code: -1, message: globalThis.lng.huodong_open_1 }) + } + + let mydata = await HQJGFun.getMydata(call, call.req.hdid); + if ((mydata.giftbuy[call.req.giftid] || { num: 0 }).num + 1 > gift.buynum) { + return call.error("", { code: -2, message: globalThis.lng.hqjgtips_28 }) + } + + let prize: atn[] = [].concat(gift.prize); + if (!mydata.giftbuy[call.req.giftid]) { + mydata.giftbuy[call.req.giftid] = { num: 0, select: [] }; + } + + if (gift.dlz) { + for (let i = 0; i < gift.dlz.length; i++) { + if (!mydata.giftbuy[call.req.giftid].select[i]) { + let ids = Object.keys(gift.dlz[i]) + prize.push(gift.dlz[i][ids[0]]); + mydata.giftbuy[call.req.giftid].select[i] = Number(ids[0]); + } else { + prize.push(gift.dlz[i][mydata.giftbuy.select[i]]); + } + } + } + mydata.giftbuy[call.req.giftid].num++; + await HQJGFun.setMyData(call.uid, call.req.hdid, { giftbuy: mydata.giftbuy }); + + call.succ({ data: mydata, prize: prize }) +} diff --git a/src/api_s2c/event/huangqijiuguan/ApiGiftSelect.ts b/src/api_s2c/event/huangqijiuguan/ApiGiftSelect.ts new file mode 100644 index 0000000..8c8f2d5 --- /dev/null +++ b/src/api_s2c/event/huangqijiuguan/ApiGiftSelect.ts @@ -0,0 +1,35 @@ +import { ApiCall } from "tsrpc"; +import { ReqGiftSelect, ResGiftSelect } from "../../../shared/protocols/event/huangqijiuguan/PtlGiftSelect"; +import HQJGFun from "./fun"; + +export default async function (call: ApiCall) { + let hd = await HQJGFun.HdInfo(call, call.req.hdid); + if (!hd || Object.keys(hd).length <= 0) { + // 无此活动 + return call.error('', { code: -1, message: globalThis.lng.huodong_open_1 }) + } + + let gift = hd.data.gift[call.req.giftid]; + if (!gift || !gift.dlz) { + return call.error('', { code: -1, message: globalThis.lng.huodong_open_1 }) + } + + for (let i = 0; i < call.req.seletc.length; i++) { + if (!gift.dlz[i] || !gift.dlz[i][call.req.seletc[i]]) { + return call.error('', { code: -1, message: globalThis.lng.huodong_open_1 }) + } + } + + let mydata = await HQJGFun.getMydata(call, call.req.hdid); + if (!mydata.giftbuy[call.req.giftid]) { + mydata.giftbuy[call.req.giftid] = { + num: 0, select: call.req.seletc + } + } else { + mydata.giftbuy[call.req.giftid].select = call.req.seletc; + } + + await HQJGFun.setMyData(call.uid, call.req.hdid, { giftbuy: mydata.giftbuy }); + + call.succ({ data: mydata }); +} \ No newline at end of file diff --git a/src/api_s2c/event/huangqijiuguan/fun.ts b/src/api_s2c/event/huangqijiuguan/fun.ts index 593e459..881ed73 100644 --- a/src/api_s2c/event/huangqijiuguan/fun.ts +++ b/src/api_s2c/event/huangqijiuguan/fun.ts @@ -3,6 +3,7 @@ import { ReqAddHuoDong } from "../../../monopoly/protocols/PtlAddHuoDong" import { HuoDongFun } from "../../../public/huodongfun" import { PublicShared } from "../../../shared/public/public" import { EmailFun } from "../../../public/email" +import { playerInfo } from "../../../shared/protocols/user/PtlLogin" // hddata.data export interface Data { @@ -33,7 +34,7 @@ export interface Data { baodi: { num: number, prize: any[] }[] - gift: { id: number, free: boolean, payId: string, buynum: number, prize: atn[] }[] + gift: { id: number, free: boolean, payId: string, buynum: number, prize: atn[], dlz?: { [k: string]: atn }[] }[] duihuan: { id: number, need: atn[], prize: atn[], buyNum: number }[] @@ -203,17 +204,6 @@ export default class HQJGFun { } } - static async buy(call: ApiCall, payId: string) { - let hddata = await this.HdInfo(call); - - if (!hddata) { // 活动不存在 - return - } - - let mydata = await this.getMydata(call); - await this.setMyData(call.uid, (await this.HdInfo(call)).hdid, mydata); - } - /** * 每日伤害等级奖励结算 */ @@ -347,7 +337,8 @@ export default class HQJGFun { $set: {} }; let tasks = hd.data.task[`day${today}`]; - for (let taskCon of Object.values(tasks)) { + for (let taskid of Object.keys(tasks)) { + let taskCon = tasks[taskid]; if (taskCon.stype != stype) continue // 不符合任务要求 @@ -358,9 +349,9 @@ export default class HQJGFun { isset = 1 if (isinc == 1) { // 累加 - setData["$inc"][`task.val.day${today}`] = val + setData["$inc"][`task.val.day${today}.${taskid}`] = val } else { - setData["$set"][`task.val.day${today}`] = val + setData["$set"][`task.val.day${today}.${taskid}`] = val } } @@ -369,7 +360,43 @@ export default class HQJGFun { await G.mongodb.collection('event').updateOne({ uid: call.uid, type: this.dataType(hd.hdid) }, setData) } } -} -// G.on("NEW_DAY", HQJGFun.dayDpsLvPrize.bind(HQJGFun)); -// G.on("NEW_DAY", HQJGFun.endDpsRankPrize.bind(HQJGFun)); \ No newline at end of file + static async buy(player: playerInfo, payId: string, payArgs: any, call: ApiCall) { + let hd = await this.HdInfo(call); + + if (!hd) { // 活动不存在 + return + } + + // 判断购买次数 + let gift = hd.data.gift.filter(x => x.payId == payId)[0]; + if (!gift) { + return + } + + let mydata = await this.getMydata(call); + if (!mydata.giftbuy[gift.id]) { + mydata.giftbuy[gift.id] = { num: 0, select: [] }; + } + + let prize: atn[] = []; + if (mydata.giftbuy[gift.id].num + 1 > gift.buynum) { + let pay = G.gc.pay[payId]; + prize.push({ a: "attr", t: "rmbmoney", n: pay.payExp[0].n }) + } else { + prize = gift.prize; + for (let i = 0; i < gift.dlz.length; i++) { + if (!mydata.giftbuy[call.req.giftid].select[i]) { + let ids = Object.keys(gift.dlz[i]) + prize.push(gift.dlz[i][ids[0]]); + mydata.giftbuy[call.req.giftid].select[i] = Number(ids[0]); + } else { + prize.push(gift.dlz[i][mydata.giftbuy.select[i]]); + } + } + } + + mydata.giftbuy[gift.id].num++; + await this.setMyData(call.uid, hd.hdid, { giftbuy: mydata.giftbuy }); + } +} \ No newline at end of file diff --git a/src/globalListener.ts b/src/globalListener.ts index d031e4f..9b73722 100644 --- a/src/globalListener.ts +++ b/src/globalListener.ts @@ -19,6 +19,7 @@ import { checkResetBuyLog } from "./api_s2c/event/zhoumolibao/ApiOpen"; import { PushGiftFun } from "./public/pushgift"; import { LeiChongLiBaoBuyGift } from "./api_s2c/event/leichonglibao/ApiReceive"; import { HongDianChange } from './api_s2c/hongdian/fun'; +import HQJGFun from './api_s2c/event/huangqijiuguan/fun'; export type gEventType = { /**新的一天 */ @@ -261,4 +262,9 @@ export function addListener() { let call = PayFun.getCall(gud); G.emit("Class_task_134", 'Class_task_134', call, 1, 0, items); }); + + // 黄旗酒馆 + G.on("NEW_DAY", HQJGFun.dayDpsLvPrize.bind(HQJGFun)); + G.on("NEW_DAY", HQJGFun.endDpsRankPrize.bind(HQJGFun)); + G.on("PLAYER_PAY", HQJGFun.buy.bind(HQJGFun)); } \ No newline at end of file diff --git a/src/shared/protocols/event/huangqijiuguan/PtlGiftRec.ts b/src/shared/protocols/event/huangqijiuguan/PtlGiftRec.ts new file mode 100644 index 0000000..a15177d --- /dev/null +++ b/src/shared/protocols/event/huangqijiuguan/PtlGiftRec.ts @@ -0,0 +1,11 @@ +import { PlayerData } from "../../../../api_s2c/event/huangqijiuguan/fun" + +export interface ReqGiftRec { + hdid: number + giftid: number +} + +export interface ResGiftRec { + data: PlayerData + prize: { a: string, t: string, n: number }[] +} diff --git a/src/shared/protocols/event/huangqijiuguan/PtlGiftSelect.ts b/src/shared/protocols/event/huangqijiuguan/PtlGiftSelect.ts new file mode 100644 index 0000000..ef484aa --- /dev/null +++ b/src/shared/protocols/event/huangqijiuguan/PtlGiftSelect.ts @@ -0,0 +1,11 @@ +import { PlayerData } from "../../../../api_s2c/event/huangqijiuguan/fun" + +export interface ReqGiftSelect { + hdid: number + giftid: number + seletc: number[] +} + +export interface ResGiftSelect { + data: PlayerData +} diff --git a/src/shared/protocols/serviceProto.ts b/src/shared/protocols/serviceProto.ts index ccdee15..59f42ea 100644 --- a/src/shared/protocols/serviceProto.ts +++ b/src/shared/protocols/serviceProto.ts @@ -53,6 +53,8 @@ import { ReqGet, ResGet } from './event/diaoluoduihuan/PtlGet'; import { ReqOpen as ReqOpen_9, ResOpen as ResOpen_9 } from './event/diaoluoduihuan/PtlOpen'; import { ReqDuiHuan, ResDuiHuan } from './event/huangqijiuguan/PtlDuiHuan'; import { ReqFight as ReqFight_1, ResFight as ResFight_1 } from './event/huangqijiuguan/PtlFight'; +import { ReqGiftRec, ResGiftRec } from './event/huangqijiuguan/PtlGiftRec'; +import { ReqGiftSelect, ResGiftSelect } from './event/huangqijiuguan/PtlGiftSelect'; import { ReqOpen as ReqOpen_10, ResOpen as ResOpen_10 } from './event/huangqijiuguan/PtlOpen'; import { ReqRankList, ResRankList } from './event/huangqijiuguan/PtlRankList'; import { ReqRecDpsPrize, ResRecDpsPrize } from './event/huangqijiuguan/PtlRecDpsPrize'; @@ -587,6 +589,14 @@ export interface ServiceType { req: ReqFight_1, res: ResFight_1 }, + "event/huangqijiuguan/GiftRec": { + req: ReqGiftRec, + res: ResGiftRec + }, + "event/huangqijiuguan/GiftSelect": { + req: ReqGiftSelect, + res: ResGiftSelect + }, "event/huangqijiuguan/Open": { req: ReqOpen_10, res: ResOpen_10 @@ -2039,281 +2049,291 @@ export const serviceProto: ServiceProto = { }, { "id": 54, - "name": "event/huangqijiuguan/Open", + "name": "event/huangqijiuguan/GiftRec", "type": "api" }, { "id": 55, - "name": "event/huangqijiuguan/RankList", + "name": "event/huangqijiuguan/GiftSelect", "type": "api" }, { "id": 56, - "name": "event/huangqijiuguan/RecDpsPrize", + "name": "event/huangqijiuguan/Open", "type": "api" }, { "id": 57, - "name": "event/huangqijiuguan/TaskRec", + "name": "event/huangqijiuguan/RankList", "type": "api" }, { "id": 58, - "name": "event/huangqijiuguan/ZhaoMu", + "name": "event/huangqijiuguan/RecDpsPrize", "type": "api" }, { "id": 59, - "name": "event/huangqijiuguan/ZhaoMuPrizeRec", + "name": "event/huangqijiuguan/TaskRec", "type": "api" }, { "id": 60, - "name": "event/huobanzhaomu/Open", + "name": "event/huangqijiuguan/ZhaoMu", "type": "api" }, { "id": 61, - "name": "event/huobanzhaomu/Rec", + "name": "event/huangqijiuguan/ZhaoMuPrizeRec", "type": "api" }, { "id": 62, - "name": "event/jierihuodong/Get", + "name": "event/huobanzhaomu/Open", "type": "api" }, { "id": 63, - "name": "event/jierihuodong/Open", + "name": "event/huobanzhaomu/Rec", "type": "api" }, { "id": 64, - "name": "event/jierihuodong/Rec", + "name": "event/jierihuodong/Get", "type": "api" }, { "id": 65, - "name": "event/jijin/CheckOpen", + "name": "event/jierihuodong/Open", "type": "api" }, { "id": 66, - "name": "event/jijin/Open", + "name": "event/jierihuodong/Rec", "type": "api" }, { "id": 67, - "name": "event/jijin/Receive", + "name": "event/jijin/CheckOpen", "type": "api" }, { "id": 68, - "name": "event/kaifukuanghuan/LoginPrize", + "name": "event/jijin/Open", "type": "api" }, { "id": 69, - "name": "event/kaifukuanghuan/Open", + "name": "event/jijin/Receive", "type": "api" }, { "id": 70, - "name": "event/kaifukuanghuan/ShopBuy", + "name": "event/kaifukuanghuan/LoginPrize", "type": "api" }, { "id": 71, - "name": "event/kaifukuanghuan/TaskBox", + "name": "event/kaifukuanghuan/Open", "type": "api" }, { "id": 72, - "name": "event/kaifukuanghuan/TaskPrize", + "name": "event/kaifukuanghuan/ShopBuy", "type": "api" }, { "id": 73, - "name": "event/leichonglibao/Open", + "name": "event/kaifukuanghuan/TaskBox", "type": "api" }, { "id": 74, - "name": "event/leichonglibao/Receive", + "name": "event/kaifukuanghuan/TaskPrize", "type": "api" }, { "id": 75, - "name": "event/leijichongzhi/Open", + "name": "event/leichonglibao/Open", "type": "api" }, { "id": 76, - "name": "event/leijichongzhi/Rec", + "name": "event/leichonglibao/Receive", "type": "api" }, { "id": 77, - "name": "event/niudanji/Lottery", + "name": "event/leijichongzhi/Open", "type": "api" }, { "id": 78, - "name": "event/niudanji/Open", + "name": "event/leijichongzhi/Rec", "type": "api" }, { "id": 79, - "name": "event/payForDiamond/CanReceive", + "name": "event/niudanji/Lottery", "type": "api" }, { "id": 80, - "name": "event/payForDiamond/Receive", + "name": "event/niudanji/Open", "type": "api" }, { "id": 81, - "name": "event/pobinglibao/Open", + "name": "event/payForDiamond/CanReceive", "type": "api" }, { "id": 82, - "name": "event/pobinglibao/Receive", + "name": "event/payForDiamond/Receive", "type": "api" }, { "id": 83, - "name": "event/qirichongzhi/Open", + "name": "event/pobinglibao/Open", "type": "api" }, { "id": 84, - "name": "event/qirichongzhi/Rec", + "name": "event/pobinglibao/Receive", "type": "api" }, { "id": 85, - "name": "event/qiridenglu/Open", + "name": "event/qirichongzhi/Open", "type": "api" }, { "id": 86, - "name": "event/qiridenglu/RecPrize", + "name": "event/qirichongzhi/Rec", "type": "api" }, { "id": 87, - "name": "event/shiwuleichong/Open", + "name": "event/qiridenglu/Open", "type": "api" }, { "id": 88, - "name": "event/shouchong/Open", + "name": "event/qiridenglu/RecPrize", "type": "api" }, { "id": 89, - "name": "event/shouchong/Receive", + "name": "event/shiwuleichong/Open", "type": "api" }, { "id": 90, - "name": "event/xianshizhaomu/Buy", + "name": "event/shouchong/Open", "type": "api" }, { "id": 91, - "name": "event/xianshizhaomu/Duihuan", + "name": "event/shouchong/Receive", "type": "api" }, { "id": 92, - "name": "event/xianshizhaomu/Lottery", + "name": "event/xianshizhaomu/Buy", "type": "api" }, { "id": 93, - "name": "event/xianshizhaomu/Open", + "name": "event/xianshizhaomu/Duihuan", "type": "api" }, { "id": 94, - "name": "event/xianshizhaomu/Rec", + "name": "event/xianshizhaomu/Lottery", "type": "api" }, { "id": 95, - "name": "event/xiaofeijingsai/Open", + "name": "event/xianshizhaomu/Open", "type": "api" }, { "id": 96, - "name": "event/xinshoulibao/Open", + "name": "event/xianshizhaomu/Rec", "type": "api" }, { "id": 97, - "name": "event/yangchengmubiao/Buy", + "name": "event/xiaofeijingsai/Open", "type": "api" }, { "id": 98, - "name": "event/yangchengmubiao/Open", + "name": "event/xinshoulibao/Open", "type": "api" }, { "id": 99, - "name": "event/yangchengmubiao/Rec", + "name": "event/yangchengmubiao/Buy", "type": "api" }, { "id": 100, - "name": "event/yibaichou/Open", + "name": "event/yangchengmubiao/Open", "type": "api" }, { "id": 101, - "name": "event/yibaichou/Rec", + "name": "event/yangchengmubiao/Rec", "type": "api" }, { "id": 102, - "name": "event/yibaichou/RecAll", + "name": "event/yibaichou/Open", "type": "api" }, { "id": 103, - "name": "event/yuandan/DMRec", + "name": "event/yibaichou/Rec", "type": "api" }, { "id": 104, - "name": "event/yuandan/DZRec", + "name": "event/yibaichou/RecAll", "type": "api" }, { "id": 105, - "name": "event/yuandan/Exchange", + "name": "event/yuandan/DMRec", "type": "api" }, { "id": 106, - "name": "event/yuandan/Open", + "name": "event/yuandan/DZRec", "type": "api" }, { "id": 107, - "name": "event/yuandan/TaskRec", + "name": "event/yuandan/Exchange", "type": "api" }, { "id": 108, - "name": "event/yuandan/ZLRec", + "name": "event/yuandan/Open", "type": "api" }, { "id": 109, + "name": "event/yuandan/TaskRec", + "type": "api" + }, + { + "id": 110, + "name": "event/yuandan/ZLRec", + "type": "api" + }, + { + "id": 111, "name": "event/yuedujijin/Open", "type": "api", "conf": { @@ -2321,157 +2341,157 @@ export const serviceProto: ServiceProto = { } }, { - "id": 110, + "id": 112, "name": "event/yuedujijin/Rec", "type": "api" }, { - "id": 111, + "id": 113, "name": "event/zhanling/BuyLv", "type": "api" }, { - "id": 112, + "id": 114, "name": "event/zhanling/Open", "type": "api" }, { - "id": 113, + "id": 115, "name": "event/zhanling/RecPrize", "type": "api" }, { - "id": 114, + "id": 116, "name": "event/zhanling/RecTask", "type": "api" }, { - "id": 115, + "id": 117, "name": "event/zhoulibao/Open", "type": "api" }, { - "id": 116, + "id": 118, "name": "event/zhoumolibao/Open", "type": "api" }, { - "id": 117, + "id": 119, "name": "event/zhoumolibao/Receive", "type": "api" }, { - "id": 118, + "id": 120, "name": "event/zixuanlibao/Buy", "type": "api" }, { - "id": 119, + "id": 121, "name": "event/zixuanlibao/Open", "type": "api" }, { - "id": 120, + "id": 122, "name": "eventlist/hdGetList", "type": "api" }, { - "id": 121, + "id": 123, "name": "friend/Apply", "type": "api" }, { - "id": 122, + "id": 124, "name": "friend/Del", "type": "api" }, { - "id": 123, + "id": 125, "name": "friend/Gift", "type": "api" }, { - "id": 124, + "id": 126, "name": "friend/List", "type": "api" }, { - "id": 125, + "id": 127, "name": "friend/Open", "type": "api" }, { - "id": 126, + "id": 128, "name": "friend/Respond", "type": "api" }, { - "id": 127, + "id": 129, "name": "friend/RmBlackList", "type": "api" }, { - "id": 128, + "id": 130, "name": "friend/Search", "type": "api" }, { - "id": 129, + "id": 131, "name": "ganbutexun/Challenge", "type": "api" }, { - "id": 130, + "id": 132, "name": "ganbutexun/Open", "type": "api" }, { - "id": 131, + "id": 133, "name": "ganhai/Fast", "type": "api" }, { - "id": 132, + "id": 134, "name": "ganhai/Fight", "type": "api" }, { - "id": 133, + "id": 135, "name": "ganhai/Log", "type": "api" }, { - "id": 134, + "id": 136, "name": "ganhai/Open", "type": "api" }, { - "id": 135, + "id": 137, "name": "ganhai/Refresh", "type": "api" }, { - "id": 136, + "id": 138, "name": "ganhai/RefreshShip", "type": "api" }, { - "id": 137, + "id": 139, "name": "ganhai/Select", "type": "api" }, { - "id": 138, + "id": 140, "name": "gmapi/Gift", "type": "api" }, { - "id": 139, + "id": 141, "name": "gmapi/Post", "type": "api" }, { - "id": 140, + "id": 142, "name": "gonghui/Apply", "type": "api", "conf": { @@ -2481,7 +2501,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 141, + "id": 143, "name": "gonghui/ApplyAll", "type": "api", "conf": { @@ -2491,7 +2511,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 142, + "id": 144, "name": "gonghui/ApplyList", "type": "api", "conf": { @@ -2501,7 +2521,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 143, + "id": 145, "name": "gonghui/Change", "type": "api", "conf": { @@ -2511,12 +2531,12 @@ export const serviceProto: ServiceProto = { } }, { - "id": 144, + "id": 146, "name": "gonghui/Create", "type": "api" }, { - "id": 145, + "id": 147, "name": "gonghui/Dissolve", "type": "api", "conf": { @@ -2526,7 +2546,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 146, + "id": 148, "name": "gonghui/Exit", "type": "api", "conf": { @@ -2536,12 +2556,12 @@ export const serviceProto: ServiceProto = { } }, { - "id": 147, + "id": 149, "name": "gonghui/FbBuyNum", "type": "api" }, { - "id": 148, + "id": 150, "name": "gonghui/FbFight", "type": "api", "conf": { @@ -2551,7 +2571,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 149, + "id": 151, "name": "gonghui/FbOpen", "type": "api", "conf": { @@ -2561,17 +2581,17 @@ export const serviceProto: ServiceProto = { } }, { - "id": 150, + "id": 152, "name": "gonghui/GetList", "type": "api" }, { - "id": 151, + "id": 153, "name": "gonghui/Join", "type": "api" }, { - "id": 152, + "id": 154, "name": "gonghui/Jx", "type": "api", "conf": { @@ -2581,7 +2601,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 153, + "id": 155, "name": "gonghui/JxOpen", "type": "api", "conf": { @@ -2591,7 +2611,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 154, + "id": 156, "name": "gonghui/List", "type": "api", "conf": { @@ -2601,7 +2621,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 155, + "id": 157, "name": "gonghui/Manage", "type": "api", "conf": { @@ -2611,7 +2631,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 156, + "id": 158, "name": "gonghui/Open", "type": "api", "conf": { @@ -2621,7 +2641,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 157, + "id": 159, "name": "gonghui/TanHe", "type": "api", "conf": { @@ -2631,7 +2651,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 158, + "id": 160, "name": "gonghui/TaskOpen", "type": "api", "conf": { @@ -2641,7 +2661,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 159, + "id": 161, "name": "gonghui/TaskReceive", "type": "api", "conf": { @@ -2651,7 +2671,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 160, + "id": 162, "name": "gonghui/UpWz", "type": "api", "conf": { @@ -2661,137 +2681,137 @@ export const serviceProto: ServiceProto = { } }, { - "id": 161, + "id": 163, "name": "gonghuibaozang/Lottery", "type": "api" }, { - "id": 162, + "id": 164, "name": "gonghuibaozang/Open", "type": "api" }, { - "id": 163, + "id": 165, "name": "gonglukuangbiao/Buy", "type": "api" }, { - "id": 164, + "id": 166, "name": "gonglukuangbiao/Fight", "type": "api" }, { - "id": 165, + "id": 167, "name": "gonglukuangbiao/Open", "type": "api" }, { - "id": 166, + "id": 168, "name": "gonglukuangbiao/Refresh", "type": "api" }, { - "id": 167, + "id": 169, "name": "gongyu/mingdao/Active", "type": "api" }, { - "id": 168, + "id": 170, "name": "gongyu/mingdao/Open", "type": "api" }, { - "id": 169, + "id": 171, "name": "gongyu/mingdao/RecPrize", "type": "api" }, { - "id": 170, + "id": 172, "name": "gongyu/mingdao/Repair", "type": "api" }, { - "id": 171, + "id": 173, "name": "gongyu/xunlianjihua/Reset", "type": "api" }, { - "id": 172, + "id": 174, "name": "gongyu/xunlianjihua/UpSkill", "type": "api" }, { - "id": 173, + "id": 175, "name": "gongyu/zuozhanjihua/SetSkill", "type": "api" }, { - "id": 174, + "id": 176, "name": "hbzb/jfs/BuyNum", "type": "api" }, { - "id": 175, + "id": 177, "name": "hbzb/jfs/Fight", "type": "api" }, { - "id": 176, + "id": 178, "name": "hbzb/jfs/GetLog", "type": "api" }, { - "id": 177, + "id": 179, "name": "hbzb/jfs/Open", "type": "api" }, { - "id": 178, + "id": 180, "name": "hbzb/jfs/Rec", "type": "api" }, { - "id": 179, + "id": 181, "name": "hbzb/jfs/Refresh", "type": "api" }, { - "id": 180, + "id": 182, "name": "hbzb/GetStatus", "type": "api" }, { - "id": 181, + "id": 183, "name": "hbzb/zbs/BuyNum", "type": "api" }, { - "id": 182, + "id": 184, "name": "hbzb/zbs/Fight", "type": "api" }, { - "id": 183, + "id": 185, "name": "hbzb/zbs/GetLog", "type": "api" }, { - "id": 184, + "id": 186, "name": "hbzb/zbs/Open", "type": "api" }, { - "id": 185, + "id": 187, "name": "hbzb/zbs/Refresh", "type": "api" }, { - "id": 186, + "id": 188, "name": "hero/Awake", "type": "api" }, { - "id": 187, + "id": 189, "name": "hero/ChangePos", "type": "api", "conf": { @@ -2799,17 +2819,17 @@ export const serviceProto: ServiceProto = { } }, { - "id": 188, + "id": 190, "name": "hero/GetList", "type": "api" }, { - "id": 189, + "id": 191, "name": "hero/JinJie", "type": "api" }, { - "id": 190, + "id": 192, "name": "hero/LvUp", "type": "api", "conf": { @@ -2817,32 +2837,32 @@ export const serviceProto: ServiceProto = { } }, { - "id": 191, + "id": 193, "name": "hero/Potency", "type": "api" }, { - "id": 192, + "id": 194, "name": "hero/Rec", "type": "api" }, { - "id": 193, + "id": 195, "name": "hero/Reset", "type": "api" }, { - "id": 194, + "id": 196, "name": "hero/Talent", "type": "api" }, { - "id": 195, + "id": 197, "name": "hero/WeaponUp", "type": "api" }, { - "id": 196, + "id": 198, "name": "hongdian/Get", "type": "api", "conf": { @@ -2850,117 +2870,117 @@ export const serviceProto: ServiceProto = { } }, { - "id": 197, + "id": 199, "name": "item/GetList", "type": "api" }, { - "id": 198, + "id": 200, "name": "item/Use", "type": "api" }, { - "id": 199, + "id": 201, "name": "jiaotang/Lottery", "type": "api" }, { - "id": 200, + "id": 202, "name": "jiaotang/Open", "type": "api" }, { - "id": 201, + "id": 203, "name": "jiuba/Lottery", "type": "api" }, { - "id": 202, + "id": 204, "name": "jiuba/Open", "type": "api" }, { - "id": 203, + "id": 205, "name": "jjc/BuyFightNum", "type": "api" }, { - "id": 204, + "id": 206, "name": "jjc/Fight", "type": "api" }, { - "id": 205, + "id": 207, "name": "jjc/FightLog", "type": "api" }, { - "id": 206, + "id": 208, "name": "jjc/Open", "type": "api" }, { - "id": 207, + "id": 209, "name": "jjc/Receive", "type": "api" }, { - "id": 208, + "id": 210, "name": "jjc/Refresh", "type": "api" }, { - "id": 209, + "id": 211, "name": "kaifujingsai/Open", "type": "api" }, { - "id": 210, + "id": 212, "name": "kaifujingsai/Receive", "type": "api" }, { - "id": 211, + "id": 213, "name": "kbzz/Apply", "type": "api" }, { - "id": 212, + "id": 214, "name": "kbzz/AutoApply", "type": "api" }, { - "id": 213, + "id": 215, "name": "kbzz/BuyNum", "type": "api" }, { - "id": 214, + "id": 216, "name": "kbzz/Fight", "type": "api" }, { - "id": 215, + "id": 217, "name": "kbzz/FightLog", "type": "api" }, { - "id": 216, + "id": 218, "name": "kbzz/GroupState", "type": "api" }, { - "id": 217, + "id": 219, "name": "kbzz/Open", "type": "api" }, { - "id": 218, + "id": 220, "name": "kbzz/RecPrize", "type": "api" }, { - "id": 219, + "id": 221, "name": "kbzz/Refresh", "type": "api", "conf": { @@ -2968,287 +2988,287 @@ export const serviceProto: ServiceProto = { } }, { - "id": 220, + "id": 222, "name": "kuangdong/AddPkNum", "type": "api" }, { - "id": 221, + "id": 223, "name": "kuangdong/GetPrize", "type": "api" }, { - "id": 222, + "id": 224, "name": "kuangdong/KdInfo", "type": "api" }, { - "id": 223, + "id": 225, "name": "kuangdong/Log", "type": "api" }, { - "id": 224, + "id": 226, "name": "kuangdong/Open", "type": "api" }, { - "id": 225, + "id": 227, "name": "kuangdong/YanShi", "type": "api" }, { - "id": 226, + "id": 228, "name": "kuangdong/ZhanLing", "type": "api" }, { - "id": 227, + "id": 229, "name": "lingzhulaixi/Open", "type": "api" }, { - "id": 228, + "id": 230, "name": "lingzhulaixi/PkBoss", "type": "api" }, { - "id": 229, + "id": 231, "name": "lingzhulaixi/PkRank", "type": "api" }, { - "id": 230, + "id": 232, "name": "lingzhulaixi/SaoDang", "type": "api" }, { - "id": 231, + "id": 233, "name": "meirishilian/Buy", "type": "api" }, { - "id": 232, + "id": 234, "name": "meirishilian/Fight", "type": "api" }, { - "id": 233, + "id": 235, "name": "meirishilian/Open", "type": "api" }, { - "id": 234, + "id": 236, "name": "msg_c2s/BindUid", "type": "msg" }, { - "id": 235, + "id": 237, "name": "msg_c2s/Pay", "type": "msg" }, { - "id": 236, + "id": 238, "name": "msg_c2s/Sync", "type": "msg" }, { - "id": 237, + "id": 239, "name": "msg_s2c/Chat", "type": "msg" }, { - "id": 238, + "id": 240, "name": "msg_s2c/ChatHelp", "type": "msg" }, { - "id": 239, + "id": 241, "name": "msg_s2c/Collection", "type": "msg" }, { - "id": 240, + "id": 242, "name": "msg_s2c/Email", "type": "msg" }, { - "id": 241, + "id": 243, "name": "msg_s2c/EmailDel", "type": "msg" }, { - "id": 242, + "id": 244, "name": "msg_s2c/EquipChange", "type": "msg" }, { - "id": 243, + "id": 245, "name": "msg_s2c/Friend", "type": "msg" }, { - "id": 244, + "id": 246, "name": "msg_s2c/GhChange", "type": "msg" }, { - "id": 245, + "id": 247, "name": "msg_s2c/GongHuiBaoZang", "type": "msg" }, { - "id": 246, + "id": 248, "name": "msg_s2c/HeroChange", "type": "msg" }, { - "id": 247, + "id": 249, "name": "msg_s2c/HongDianChange", "type": "msg" }, { - "id": 248, + "id": 250, "name": "msg_s2c/ItemChange", "type": "msg" }, { - "id": 249, + "id": 251, "name": "msg_s2c/LoginQueue", "type": "msg" }, { - "id": 250, + "id": 252, "name": "msg_s2c/LshdChange", "type": "msg" }, { - "id": 251, + "id": 253, "name": "msg_s2c/NewDay", "type": "msg" }, { - "id": 252, + "id": 254, "name": "msg_s2c/OtherLogin", "type": "msg" }, { - "id": 253, + "id": 255, "name": "msg_s2c/PayChange", "type": "msg" }, { - "id": 254, + "id": 256, "name": "msg_s2c/PayResult", "type": "msg" }, { - "id": 255, + "id": 257, "name": "msg_s2c/PeijianChange", "type": "msg" }, { - "id": 256, + "id": 258, "name": "msg_s2c/PlayerChange", "type": "msg" }, { - "id": 257, + "id": 259, "name": "msg_s2c/Private", "type": "msg" }, { - "id": 258, + "id": 260, "name": "msg_s2c/PushGiftChange", "type": "msg" }, { - "id": 259, + "id": 261, "name": "msg_s2c/SendGift", "type": "msg" }, { - "id": 260, + "id": 262, "name": "msg_s2c/ShiwuChange", "type": "msg" }, { - "id": 261, + "id": 263, "name": "msg_s2c/TaskChange", "type": "msg" }, { - "id": 262, + "id": 264, "name": "msg_s2c/Xianshilibao", "type": "msg" }, { - "id": 263, + "id": 265, "name": "pata/Fight", "type": "api" }, { - "id": 264, + "id": 266, "name": "pata/GetPrize", "type": "api" }, { - "id": 265, + "id": 267, "name": "pata/Open", "type": "api" }, { - "id": 266, + "id": 268, "name": "pata/SaoDang", "type": "api" }, { - "id": 267, + "id": 269, "name": "pay/GetList", "type": "api" }, { - "id": 268, + "id": 270, "name": "peijian/GetList", "type": "api" }, { - "id": 269, + "id": 271, "name": "peijian/JingLian", "type": "api" }, { - "id": 270, + "id": 272, "name": "peijian/JinJie", "type": "api" }, { - "id": 271, + "id": 273, "name": "peijian/LvUp", "type": "api" }, { - "id": 272, + "id": 274, "name": "peijian/OneKeyLvUp", "type": "api" }, { - "id": 273, + "id": 275, "name": "peijian/OneKeyWear", "type": "api" }, { - "id": 274, + "id": 276, "name": "peijian/Reset", "type": "api" }, { - "id": 275, + "id": 277, "name": "peijian/Rm", "type": "api" }, { - "id": 276, + "id": 278, "name": "peijian/TakeOff", "type": "api", "conf": { @@ -3256,32 +3276,32 @@ export const serviceProto: ServiceProto = { } }, { - "id": 277, + "id": 279, "name": "peijian/UnLock", "type": "api" }, { - "id": 278, + "id": 280, "name": "peijian/Wear", "type": "api" }, { - "id": 279, + "id": 281, "name": "peijiancangku/Deal", "type": "api" }, { - "id": 280, + "id": 282, "name": "peijiancangku/Jump", "type": "api" }, { - "id": 281, + "id": 283, "name": "peijiancangku/Open", "type": "api" }, { - "id": 282, + "id": 284, "name": "Bingo", "type": "api", "conf": { @@ -3289,147 +3309,147 @@ export const serviceProto: ServiceProto = { } }, { - "id": 283, + "id": 285, "name": "FightTest", "type": "api" }, { - "id": 284, + "id": 286, "name": "SyncBtn", "type": "api" }, { - "id": 285, + "id": 287, "name": "Test", "type": "api" }, { - "id": 286, + "id": 288, "name": "pushgift/ItemNoEnough", "type": "api" }, { - "id": 287, + "id": 289, "name": "pushgift/Open", "type": "api" }, { - "id": 288, + "id": 290, "name": "qjzzd/Fight", "type": "api" }, { - "id": 289, + "id": 291, "name": "qjzzd/Open", "type": "api" }, { - "id": 290, + "id": 292, "name": "rank/Open", "type": "api" }, { - "id": 291, + "id": 293, "name": "shiwu/Concise", "type": "api" }, { - "id": 292, + "id": 294, "name": "shiwu/Extract", "type": "api" }, { - "id": 293, + "id": 295, "name": "shiwu/GetList", "type": "api" }, { - "id": 294, + "id": 296, "name": "shiwu/LvUp", "type": "api" }, { - "id": 295, + "id": 297, "name": "shiwu/Recast", "type": "api" }, { - "id": 296, + "id": 298, "name": "shiwu/TakeOff", "type": "api" }, { - "id": 297, + "id": 299, "name": "shiwu/Wear", "type": "api" }, { - "id": 298, + "id": 300, "name": "shootGame/Open", "type": "api" }, { - "id": 299, + "id": 301, "name": "shootGame/Rec", "type": "api" }, { - "id": 300, + "id": 302, "name": "shop/Buy", "type": "api" }, { - "id": 301, + "id": 303, "name": "shop/Open", "type": "api" }, { - "id": 302, + "id": 304, "name": "shop/Refresh", "type": "api" }, { - "id": 303, + "id": 305, "name": "sign/GetBoxPrize", "type": "api" }, { - "id": 304, + "id": 306, "name": "sign/GetPrize", "type": "api" }, { - "id": 305, + "id": 307, "name": "sign/Open", "type": "api" }, { - "id": 306, + "id": 308, "name": "slzd/Aim", "type": "api" }, { - "id": 307, + "id": 309, "name": "slzd/BuyNum", "type": "api" }, { - "id": 308, + "id": 310, "name": "slzd/Fight", "type": "api" }, { - "id": 309, + "id": 311, "name": "slzd/FightLog", "type": "api" }, { - "id": 310, + "id": 312, "name": "slzd/MyRank", "type": "api" }, { - "id": 311, + "id": 313, "name": "slzd/Open", "type": "api", "conf": { @@ -3439,77 +3459,77 @@ export const serviceProto: ServiceProto = { } }, { - "id": 312, + "id": 314, "name": "slzd/OpenFort", "type": "api" }, { - "id": 313, + "id": 315, "name": "slzd/Rec", "type": "api" }, { - "id": 314, + "id": 316, "name": "slzd/Refresh", "type": "api" }, { - "id": 315, + "id": 317, "name": "slzd/Slot", "type": "api" }, { - "id": 316, + "id": 318, "name": "tanxian/Event", "type": "api" }, { - "id": 317, + "id": 319, "name": "tanxian/FastGuaJi", "type": "api" }, { - "id": 318, + "id": 320, "name": "tanxian/Fight", "type": "api" }, { - "id": 319, + "id": 321, "name": "tanxian/GuaJi", "type": "api" }, { - "id": 320, + "id": 322, "name": "tanxian/Open", "type": "api" }, { - "id": 321, + "id": 323, "name": "tanxian/Receive", "type": "api" }, { - "id": 322, + "id": 324, "name": "task/AllFinsh", "type": "api" }, { - "id": 323, + "id": 325, "name": "task/Finsh", "type": "api" }, { - "id": 324, + "id": 326, "name": "task/Open", "type": "api" }, { - "id": 325, + "id": 327, "name": "user/CDKEY", "type": "api" }, { - "id": 326, + "id": 328, "name": "user/ChangeInfo", "type": "api", "conf": { @@ -3517,212 +3537,212 @@ export const serviceProto: ServiceProto = { } }, { - "id": 327, + "id": 329, "name": "user/ChangeName", "type": "api" }, { - "id": 328, + "id": 330, "name": "user/Dot", "type": "api" }, { - "id": 329, + "id": 331, "name": "user/Fight", "type": "api" }, { - "id": 330, + "id": 332, "name": "user/GetInfo", "type": "api" }, { - "id": 331, + "id": 333, "name": "user/InfoOpen", "type": "api" }, { - "id": 332, + "id": 334, "name": "user/Login", "type": "api" }, { - "id": 333, + "id": 335, "name": "user/Ping", "type": "api" }, { - "id": 334, + "id": 336, "name": "user/Renown", "type": "api" }, { - "id": 335, + "id": 337, "name": "user/RenownBuy", "type": "api" }, { - "id": 336, + "id": 338, "name": "user/RenownGetPrize", "type": "api" }, { - "id": 337, + "id": 339, "name": "user/RenownOpen", "type": "api" }, { - "id": 338, + "id": 340, "name": "user/Tujian", "type": "api" }, { - "id": 339, + "id": 341, "name": "weiwang/Open", "type": "api" }, { - "id": 340, + "id": 342, "name": "weiwang/UpLv", "type": "api" }, { - "id": 341, + "id": 343, "name": "weixiuchang/Decompose", "type": "api" }, { - "id": 342, + "id": 344, "name": "weixiuchang/Exchange", "type": "api" }, { - "id": 343, + "id": 345, "name": "weixiuchang/Open", "type": "api" }, { - "id": 344, + "id": 346, "name": "weixiuchang/UpLv", "type": "api" }, { - "id": 345, + "id": 347, "name": "weixiuchang/UpStar", "type": "api" }, { - "id": 346, + "id": 348, "name": "wzry/AutoBaoMing", "type": "api" }, { - "id": 347, + "id": 349, "name": "wzry/BaoMing", "type": "api" }, { - "id": 348, + "id": 350, "name": "wzry/catFightLog", "type": "api" }, { - "id": 349, + "id": 351, "name": "wzry/CatGroup", "type": "api" }, { - "id": 350, + "id": 352, "name": "wzry/DldFight", "type": "api" }, { - "id": 351, + "id": 353, "name": "wzry/DldRefre", "type": "api" }, { - "id": 352, + "id": 354, "name": "wzry/JingCai", "type": "api" }, { - "id": 353, + "id": 355, "name": "wzry/JingCaiOpen", "type": "api" }, { - "id": 354, + "id": 356, "name": "wzry/Open", "type": "api" }, { - "id": 355, + "id": 357, "name": "wzry/UpdateFight", "type": "api" }, { - "id": 356, + "id": 358, "name": "wzry/Wzzd", "type": "api" }, { - "id": 357, + "id": 359, "name": "wzry/ZuanShiOpen", "type": "api" }, { - "id": 358, + "id": 360, "name": "xstask/AllGet", "type": "api" }, { - "id": 359, + "id": 361, "name": "xstask/Get", "type": "api" }, { - "id": 360, + "id": 362, "name": "xstask/LvUp", "type": "api" }, { - "id": 361, + "id": 363, "name": "xstask/OnekeyReceive", "type": "api" }, { - "id": 362, + "id": 364, "name": "xstask/Open", "type": "api" }, { - "id": 363, + "id": 365, "name": "xstask/Receive", "type": "api" }, { - "id": 364, + "id": 366, "name": "xstask/Refresh", "type": "api" }, { - "id": 365, + "id": 367, "name": "yongbingzhuzhan/Handle", "type": "api" }, { - "id": 366, + "id": 368, "name": "zhanqianbushu/ChangePos", "type": "api" }, { - "id": 367, + "id": 369, "name": "zhanqianbushu/Select", "type": "api" }, { - "id": 368, + "id": 370, "name": "zhanqianbushu/Up", "type": "api" } @@ -9973,6 +9993,113 @@ export const serviceProto: ServiceProto = { } ] }, + "event/huangqijiuguan/PtlGiftRec/ReqGiftRec": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "hdid", + "type": { + "type": "Number" + } + }, + { + "id": 1, + "name": "giftid", + "type": { + "type": "Number" + } + } + ] + }, + "event/huangqijiuguan/PtlGiftRec/ResGiftRec": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "data", + "type": { + "type": "Reference", + "target": "../../api_s2c/event/huangqijiuguan/fun/PlayerData" + } + }, + { + "id": 1, + "name": "prize", + "type": { + "type": "Array", + "elementType": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "a", + "type": { + "type": "String" + } + }, + { + "id": 1, + "name": "t", + "type": { + "type": "String" + } + }, + { + "id": 2, + "name": "n", + "type": { + "type": "Number" + } + } + ] + } + } + } + ] + }, + "event/huangqijiuguan/PtlGiftSelect/ReqGiftSelect": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "hdid", + "type": { + "type": "Number" + } + }, + { + "id": 1, + "name": "giftid", + "type": { + "type": "Number" + } + }, + { + "id": 2, + "name": "seletc", + "type": { + "type": "Array", + "elementType": { + "type": "Number" + } + } + } + ] + }, + "event/huangqijiuguan/PtlGiftSelect/ResGiftSelect": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "data", + "type": { + "type": "Reference", + "target": "../../api_s2c/event/huangqijiuguan/fun/PlayerData" + } + } + ] + }, "event/huangqijiuguan/PtlOpen/ReqOpen": { "type": "Interface", "properties": [ @@ -10249,7 +10376,23 @@ export const serviceProto: ServiceProto = { "type": { "type": "Array", "elementType": { - "type": "Number" + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "idx", + "type": { + "type": "Number" + } + }, + { + "id": 1, + "name": "sec", + "type": { + "type": "String" + } + } + ] } } }