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 d396c76..ab2e29d 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 = { /**新的一天 */ @@ -262,4 +263,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 846d4ff..8d3ab1d 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'; @@ -590,6 +592,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 @@ -2054,281 +2064,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": { @@ -2336,157 +2356,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": { @@ -2496,7 +2516,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 141, + "id": 143, "name": "gonghui/ApplyAll", "type": "api", "conf": { @@ -2506,7 +2526,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 142, + "id": 144, "name": "gonghui/ApplyList", "type": "api", "conf": { @@ -2516,7 +2536,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 143, + "id": 145, "name": "gonghui/Change", "type": "api", "conf": { @@ -2526,12 +2546,12 @@ export const serviceProto: ServiceProto = { } }, { - "id": 144, + "id": 146, "name": "gonghui/Create", "type": "api" }, { - "id": 145, + "id": 147, "name": "gonghui/Dissolve", "type": "api", "conf": { @@ -2541,7 +2561,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 146, + "id": 148, "name": "gonghui/Exit", "type": "api", "conf": { @@ -2551,12 +2571,12 @@ export const serviceProto: ServiceProto = { } }, { - "id": 147, + "id": 149, "name": "gonghui/FbBuyNum", "type": "api" }, { - "id": 148, + "id": 150, "name": "gonghui/FbFight", "type": "api", "conf": { @@ -2566,7 +2586,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 149, + "id": 151, "name": "gonghui/FbOpen", "type": "api", "conf": { @@ -2576,17 +2596,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": { @@ -2596,7 +2616,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 153, + "id": 155, "name": "gonghui/JxOpen", "type": "api", "conf": { @@ -2606,7 +2626,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 154, + "id": 156, "name": "gonghui/List", "type": "api", "conf": { @@ -2616,7 +2636,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 155, + "id": 157, "name": "gonghui/Manage", "type": "api", "conf": { @@ -2626,7 +2646,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 156, + "id": 158, "name": "gonghui/Open", "type": "api", "conf": { @@ -2636,7 +2656,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 157, + "id": 159, "name": "gonghui/TanHe", "type": "api", "conf": { @@ -2646,7 +2666,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 158, + "id": 160, "name": "gonghui/TaskOpen", "type": "api", "conf": { @@ -2656,7 +2676,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 159, + "id": 161, "name": "gonghui/TaskReceive", "type": "api", "conf": { @@ -2666,7 +2686,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 160, + "id": 162, "name": "gonghui/UpWz", "type": "api", "conf": { @@ -2676,137 +2696,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": { @@ -2814,17 +2834,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": { @@ -2832,27 +2852,27 @@ 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" }, @@ -10038,6 +10058,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": [ @@ -10331,6 +10458,23 @@ export const serviceProto: ServiceProto = { } } ] + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "idx", + "type": { + "type": "Number" + } + }, + { + "id": 1, + "name": "sec", + "type": { + "type": "String" + } + } + ] } } }