diff --git a/src/api_s2c/event/yuandan/ApiDMOpen.ts b/src/api_s2c/event/yuandan/ApiDMOpen.ts new file mode 100644 index 0000000..c0c659a --- /dev/null +++ b/src/api_s2c/event/yuandan/ApiDMOpen.ts @@ -0,0 +1,16 @@ +import {ApiCall} from "tsrpc"; +import {ReqDMOpen, ResDMOpen} from "../../../shared/protocols/event/yuandan/PtlDMOpen"; +import {HuoDongFun} from "../../../public/huodongfun"; +import {PayFun} from "../../../public/pay"; + +export default async function (call: ApiCall) { + let data = await G.mongodb.cEvent('yuandandamo').findOne({uid: call.uid, type: 'yuandandamo'}) + + let _hd = (await HuoDongFun.gethdList(call, 14))[0] + + let payIds = _hd?.data?.gift?.filter(i => i.payId)?.map(i => i.payId) + + call.succ({ + record: data?.record || {} + }) +} \ No newline at end of file diff --git a/src/api_s2c/event/yuandan/ApiDMRec.ts b/src/api_s2c/event/yuandan/ApiDMRec.ts new file mode 100644 index 0000000..d850556 --- /dev/null +++ b/src/api_s2c/event/yuandan/ApiDMRec.ts @@ -0,0 +1,27 @@ +import {ApiCall} from "tsrpc"; +import {ReqDMRec, ResDMRec} from "../../../shared/protocols/event/yuandan/PtlDMRec"; +import {HuoDongFun} from "../../../public/huodongfun"; +import {PlayerFun} from "../../../public/player"; +import {HongDianChange} from "../../hongdian/fun"; + +export default async function (call: ApiCall) { + // 查询活动是否有当前领奖的免费选项 + let _hd = (await HuoDongFun.gethdList(call, 14))[0] + let gift = _hd?.data?.gift?.find(i => i.free && i.id == call.req.id) + if (!gift) return call.errorCode(-1) + + // 取奖励列表,判断是否有可领取奖励 + let data = await G.mongodb.cEvent('yuandandamo').findOne({uid: call.uid, type: 'yuandandamo'}) + let rec = data?.record?.[call.req.id] + if (rec && rec >= gift?.buyNum) return call.errorCode(-2) + + await PlayerFun.sendPrize(call, gift.prize); + + await G.mongodb.cEvent('yuandandamo').updateOne({uid: call.uid, type: 'yuandandamo'}, { + $inc: {[`record.${gift.id}`]: 1}, + }, {upsert: true}) + + call.succ({}) + + HongDianChange.sendChangeKey(call.uid, ['yuandan']); +} diff --git a/src/api_s2c/event/yuandan/ApiDZOpen.ts b/src/api_s2c/event/yuandan/ApiDZOpen.ts new file mode 100644 index 0000000..ae9a55a --- /dev/null +++ b/src/api_s2c/event/yuandan/ApiDZOpen.ts @@ -0,0 +1,17 @@ +import {ApiCall} from "tsrpc"; +import {ReqDZOpen, ResDZOpen} from "../../../shared/protocols/event/yuandan/PtlDZOpen"; +import {HuoDongFun} from "../../../public/huodongfun"; +import {PayFun} from "../../../public/pay"; + +export default async function (call: ApiCall) { + let data = await G.mongodb.cEvent('yuandandingzhi').findOne({uid: call.uid, type: 'yuandandingzhi'}) + + let _hd = (await HuoDongFun.gethdList(call, 14))[0] + + let payIds = _hd?.data?.gift?.filter(i => i.payId)?.map(i => i.payId) + + call.succ({ + record: data?.record || {}, + buyLog: await PayFun.getPayLogs(call.uid, payIds) + }) +} \ No newline at end of file diff --git a/src/api_s2c/event/yuandan/ApiDZRec.ts b/src/api_s2c/event/yuandan/ApiDZRec.ts new file mode 100644 index 0000000..9374b56 --- /dev/null +++ b/src/api_s2c/event/yuandan/ApiDZRec.ts @@ -0,0 +1,27 @@ +import {ApiCall} from "tsrpc"; +import {ReqDZRec, ResDZRec} from "../../../shared/protocols/event/yuandan/PtlDZRec"; +import {HuoDongFun} from "../../../public/huodongfun"; +import {PlayerFun} from "../../../public/player"; +import {HongDianChange} from "../../hongdian/fun"; + +export default async function (call: ApiCall) { + // 查询活动是否有当前领奖的免费选项 + let _hd = (await HuoDongFun.gethdList(call, 14))[0] + let gift = _hd?.data?.gift?.find(i => i.free && i.id == call.req.id) + if (!gift) return call.errorCode(-1) + + // 取奖励列表,判断是否有可领取奖励 + let data = await G.mongodb.cEvent('yuandandingzhi').findOne({uid: call.uid, type: 'yuandandingzhi'}) + let rec = data?.record?.[call.req.id] + if (rec && rec >= gift?.buyNum) return call.errorCode(-2) + + await PlayerFun.sendPrize(call, gift.prize); + + await G.mongodb.cEvent('yuandandingzhi').updateOne({uid: call.uid, type: 'yuandandingzhi'}, { + $inc: {[`record.${gift.id}`]: 1}, + }, {upsert: true}) + + call.succ({}) + + HongDianChange.sendChangeKey(call.uid, ['yuandan']); +} diff --git a/src/api_s2c/event/yuandan/ApiExchange.ts b/src/api_s2c/event/yuandan/ApiExchange.ts new file mode 100644 index 0000000..1724dcd --- /dev/null +++ b/src/api_s2c/event/yuandan/ApiExchange.ts @@ -0,0 +1,28 @@ +import {ApiCall} from "tsrpc"; +import {ReqExchange, ResExchange} from "../../../shared/protocols/event/yuandan/PtlExchange"; +import {HuoDongFun} from "../../../public/huodongfun"; +import {PlayerFun} from "../../../public/player"; +import {HongDianChange} from "../../hongdian/fun"; + +export default async function (call: ApiCall) { + // 查询活动是否有当前领奖的免费选项 + let _hd = (await HuoDongFun.gethdList(call, 14))[0] + let gift = _hd?.data?.gift?.find(i => i.free && i.id == call.req.id) + if (!gift) return call.errorCode(-1) + + // 取奖励列表,判断是否有可领取奖励 + let data = await G.mongodb.cEvent('yuandanduihuan').findOne({uid: call.uid, type: 'yuandanduihuan'}) + let rec = data?.record?.[call.req.id] + if (rec && rec >= gift?.buyNum) return call.errorCode(-2) + + await PlayerFun.sendPrize(call, gift.prize); + await PlayerFun.cutNeed(call, gift.prize) + + await G.mongodb.cEvent('yuandanduihuan').updateOne({uid: call.uid, type: 'yuandanduihuan'}, { + $inc: {[`record.${gift.id}`]: 1}, + }, {upsert: true}) + + call.succ({}) + + HongDianChange.sendChangeKey(call.uid, ['yuandan']); +} diff --git a/src/api_s2c/event/yuandan/ApiExchangeOpen.ts b/src/api_s2c/event/yuandan/ApiExchangeOpen.ts new file mode 100644 index 0000000..36910a4 --- /dev/null +++ b/src/api_s2c/event/yuandan/ApiExchangeOpen.ts @@ -0,0 +1,10 @@ +import {ApiCall} from "tsrpc"; +import {ReqExchangeOpen, ResExchangeOpen} from "../../../shared/protocols/event/yuandan/PtlExchangeOpen"; + +export default async function (call: ApiCall) { + let data = await G.mongodb.cEvent('yuandanduihuan').findOne({uid: call.uid, type: 'yuandanduihuan'}) + + call.succ({ + record: data?.record || {}, + }) +} \ No newline at end of file diff --git a/src/api_s2c/event/yuandan/ApiTaskFinish.ts b/src/api_s2c/event/yuandan/ApiTaskFinish.ts new file mode 100644 index 0000000..d0af2c9 --- /dev/null +++ b/src/api_s2c/event/yuandan/ApiTaskFinish.ts @@ -0,0 +1,40 @@ +import { ApiCall } from "tsrpc"; +import { ReqTaskRec, ResTaskRec } from "../../../shared/protocols/event/christmas/PtlTaskRec"; +import {Christmasfun} from "./fun"; +import {HongDianChange} from "../../hongdian/fun"; +import {PlayerFun} from "../../../public/player"; + +export default async function (call: ApiCall) { + let initCon = await Christmasfun.getCon(call) + let taskid = call.req.taskid; + let _con = initCon[call.req.hdid].data.task[taskid]; + if (!_con) { + // 任务id 不存在 + return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 }) + } + let _mydata = await Christmasfun.getMyData(call, call.req.hdid) + if (_mydata.taskval[taskid] < _con.pval) { + // 任务未完成 + return call.error('', { code: -2, message: globalThis.lng.yangchengmubiao_3 }) + } + if (_mydata.taskfinish.includes(taskid)) { + // 任务已领取 + return call.error('', { code: -3, message: globalThis.lng.yangchengmubiao_4 }) + } + _mydata.taskfinish.push(taskid) + let _addval = _con.addval + let _setData = {} + _mydata["val"] += _addval + _setData["val"] = _mydata.val + _setData["taskfinish"] = _mydata.taskfinish + await Christmasfun.setMyData(call.uid, call.req.hdid, { $set: _setData }) + let _prize = _con.prize + + await PlayerFun.sendPrize(call, _prize); + let changedata = { mydata: _mydata, prize: _prize} + // 推送红点 + HongDianChange.sendChangeKey(call.uid, ['huodonghd']); + call.succ(changedata); + + +} \ No newline at end of file diff --git a/src/api_s2c/event/yuandan/ApiTaskOpen.ts b/src/api_s2c/event/yuandan/ApiTaskOpen.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/api_s2c/event/yuandan/ApiZLOpen.ts b/src/api_s2c/event/yuandan/ApiZLOpen.ts new file mode 100644 index 0000000..ebbdc52 --- /dev/null +++ b/src/api_s2c/event/yuandan/ApiZLOpen.ts @@ -0,0 +1,16 @@ +import {ApiCall} from "tsrpc"; +import {ReqZLOpen, ResZLOpen} from "../../../shared/protocols/event/yuandan/PtlZLOpen"; +import {HuoDongFun} from "../../../public/huodongfun"; +import {PayFun} from "../../../public/pay"; + +export default async function (call: ApiCall) { + let data = await G.mongodb.cEvent('yuandanzengli').findOne({uid: call.uid, type: 'yuandanzengli'}) + + let _hd = (await HuoDongFun.gethdList(call, 14))[0] + + let payIds = _hd?.data?.gift?.filter(i => i.payId)?.map(i => i.payId) + + call.succ({ + record: data?.record || {}, + }) +} \ No newline at end of file diff --git a/src/api_s2c/event/yuandan/ApiZLRec.ts b/src/api_s2c/event/yuandan/ApiZLRec.ts new file mode 100644 index 0000000..27624bd --- /dev/null +++ b/src/api_s2c/event/yuandan/ApiZLRec.ts @@ -0,0 +1,27 @@ +import {ApiCall} from "tsrpc"; +import {ReqZLRec, ResZLRec} from "../../../shared/protocols/event/yuandan/PtlZLRec"; +import {HuoDongFun} from "../../../public/huodongfun"; +import {PlayerFun} from "../../../public/player"; +import {HongDianChange} from "../../hongdian/fun"; + +export default async function (call: ApiCall) { + // 查询活动是否有当前领奖的免费选项 + let _hd = (await HuoDongFun.gethdList(call, 14))[0] + let gift = _hd?.data?.gift?.find(i => i.free && i.id == call.req.id) + if (!gift) return call.errorCode(-1) + + // 取奖励列表,判断是否有可领取奖励 + let data = await G.mongodb.cEvent('yuandandamo').findOne({uid: call.uid, type: 'yuandandamo'}) + let rec = data?.record?.[call.req.id] + if (rec && rec >= gift?.buyNum) return call.errorCode(-2) + + await PlayerFun.sendPrize(call, gift.prize); + + await G.mongodb.cEvent('yuandandamo').updateOne({uid: call.uid, type: 'yuandandamo'}, { + $inc: {[`record.${gift.id}`]: 1}, + }, {upsert: true}) + + call.succ({}) + + HongDianChange.sendChangeKey(call.uid, ['yuandan']); +} diff --git a/src/api_s2c/event/yuandan/fun.ts b/src/api_s2c/event/yuandan/fun.ts new file mode 100644 index 0000000..7ac4168 --- /dev/null +++ b/src/api_s2c/event/yuandan/fun.ts @@ -0,0 +1,214 @@ +import {ApiCall} from 'tsrpc'; +import {ReqAddHuoDong} from '../../../monopoly/protocols/PtlAddHuoDong'; +import {HuoDongFun} from '../../../public/huodongfun'; +import {christmas} from '../../../shared/protocols/event/christmas/PtlOpen'; +import {PublicShared} from '../../../shared/public/public'; +import {PlayerFun} from "../../../public/player"; + +export class Yuandanfun { + /**配置 */ + static async getCon(call: ApiCall) { + let _con: { [id: string]: ReqAddHuoDong } = {} + let _hd = await HuoDongFun.gethdList(call, 8) + for (let index = 0; index < _hd.length; index++) { + const element = _hd[index]; + if (element && element._id) delete element._id + _con[element.hdid] = element + } + return _con + } + + /**获取所有符合时间的活动 */ + static async gethdids(call: ApiCall) { + let _hdids = [] + let _hd = await HuoDongFun.gethdList(call, 8) + for (let index = 0; index < _hd.length; index++) { + const element = _hd[index]; + _hdids.push(element.hdid) + } + return _hdids + } + + /**获取我的数据 */ + static async getMyData(call: ApiCall, hdid: number) { + let db: any = await G.mongodb.cEvent(`christmas${hdid}`).findOne({ + uid: call.uid, + type: `christmas${hdid}`, + hdid: hdid + }); + if (!db) { + db = await this.initData(call, hdid) + await G.mongodb.cEvent(`christmas${hdid}`).updateOne( + {uid: call.uid, type: `christmas${hdid}`, hdid: hdid}, + {$set: db}, + {upsert: true} + ) + } + let {_id, ..._myData} = db + if (!PublicShared.chkSameDate(_myData.refresh, G.time)) { + // 刷新每日任务 + _myData = await this.refreTask(call, _myData, hdid) + + } + return _myData + } + + /**初始数据 */ + static async initData(call: ApiCall, hdid: number) { + let _initCon = await this.getCon(call) + let _con = _initCon[hdid] + let _r: christmas = { + type: `christmas${hdid}`, + uid: call.uid, + hdid: hdid, + taskval: await this.getTaskVal(call, hdid), + taskfinish: [], + refresh: G.time, + gamenum: 0, + pt: [], + gj: [], + pay: false, + select: {}, + val: 0, + qiandao: [], + libao: {} + } + return _r + } + + /**设置数据 */ + static async setMyData(uid: string, hdid: number, set: {}) { + await G.mongodb.cEvent(`christmas${hdid}`).updateOne( + {uid: uid, type: `christmas${hdid}`, hdid: hdid}, + set + ) + } + + /**获取所有taskid 及对应的值 */ + static async getTaskVal(call: ApiCall, hdid: number) { + let _initCon = await this.getCon(call) + let _tasks = _initCon[hdid].data.task + let _res = {} + for (let index = 0; index < Object.keys(_tasks).length; index++) { + const element = Object.keys(_tasks)[index]; + let _tmp = _tasks[element] + _tmp["id"] = element + // 每日登录直接完成 + if (element == "1") { + _res[element] = 1 + } else { + _res[element] = 0 + } + + + } + return _res + } + + /**刷新每日任务 */ + static async refreTask(call: ApiCall, mydata: christmas, hdid: number) { + let _initCon = await this.getCon(call) + let _con = _initCon[hdid].data.task + if (!_con) return mydata + mydata.taskfinish = [] + mydata.taskval = await this.getTaskVal(call, hdid) + mydata.refresh = G.time + mydata.gamenum = 0 + mydata.libao = {} + await this.setMyData(call.uid, hdid, { + $set: { + refresh: mydata.refresh, + taskfinish: mydata.taskfinish, + taskval: mydata.taskval, + gamenum: mydata.gamenum, + libao: mydata.libao + } + }) + return mydata + } + + static async payChristmas(payid, call: any) { + let _hd = await HuoDongFun.gethdList(call, 8) + for (let index = 0; index < _hd.length; index++) { + const hdinfo = _hd[index]; + const _hdid = hdinfo.hdid + if (payid == hdinfo.data.zlpayid) { + let _mydata = await Yuandanfun.getMyData(call, _hdid) + if (_mydata.pay) continue + await this.setMyData(call.uid, _hdid, {$set: {pay: true}}) + // let _prize = hdinfo.data.zlpayprize + // await PlayerFun.sendPrize(call, _prize); + } else { + const libaos = hdinfo.data.libao + for (let index = 0; index < Object.keys(libaos).length; index++) { + const lbid = Object.keys(libaos)[index]; + let _tmp = libaos[lbid] + if (_tmp['payid'] != payid) continue + let _mydata = await Yuandanfun.getMyData(call, _hdid) + let _buyNum = _mydata.libao[lbid] || 0 + if (_buyNum >= _tmp["buynum"]) continue + _mydata.libao[lbid] = _buyNum + 1 + this.setMyData(call.uid, _hdid, {$set: {libao: _mydata.libao}}) + let _select = _mydata.select[lbid] || {} + let _prize: atn[] = _tmp["basep"] + for (let key in _select) { + _prize.push(_tmp["dlz"][parseInt(key)][_select[key]]) + } + await PlayerFun.sendPrize(call, _prize); + break + + } + } + } + } + + + /**设置任务 */ + static async setTaskVal(call: ApiCall, stype: number, val: number, chkCall: Function, chkval: number = 0, isinc: number = 0, alchangeVal: Function, arg) { + let hdids = await this.gethdids(call) + if (hdids.length <= 0) return // 活动过期,不计数 + let _initCon = await this.getCon(call) + + for (let index = 0; index < hdids.length; index++) { + const hdid = hdids[index]; + // let _mydata = await Christmasfun.getMyData(call, hdid) + let _tasks = _initCon[hdid].data.task + + let _setData = { + $inc: {}, + $set: {} + } + let isset = 0 + for (let indextask = 0; indextask < Object.keys(_tasks).length; indextask++) { + const ele = Object.keys(_tasks)[indextask]; + // 具体任务配置 + let _taskCon = _tasks[ele] + if (_taskCon.stype != stype) continue + + let _pval = _taskCon.pval + // 不符合任务要求 + if (!(await chkCall(_taskCon["cond"], chkval, arg))) continue + + // 根据需求改写 + val = await alchangeVal(call, _taskCon, val, arg) + + isset = 1 + if (isinc == 1) { // 累加 + _setData["$inc"][`taskval.${ele}`] = val + } else { + _setData["$set"][`taskval.${ele}`] = val + } + } + + // 设置任务 + if (isset == 1) { + await G.mongodb.collection('event').updateMany( + {uid: call.uid, type: {$regex: "christmas"}, hdid: parseInt(hdid)}, + _setData + ) + } + } + } + + +} diff --git a/src/clusterUtils.ts b/src/clusterUtils.ts index 05b3006..de15e84 100644 --- a/src/clusterUtils.ts +++ b/src/clusterUtils.ts @@ -44,10 +44,10 @@ export function clusterPublish(key: string, data: any) { * 在集群的N个进程中,只运行一次,在业务逻辑中也可使用 */ export function clusterRunOnce(fun) { - console.log(`${process.pid}环境变量pm_id===>${process.env.pm_id}`); + // console.log(`${process.pid}环境变量pm_id===>${process.env.pm_id}`); if (process.env.pm_id == null || process.env.pm_id === '0') { //非pm2启动的,或是pm2下启动的第一个进程 - console.log("run clusterRunOnce1 ===>", process.pid) + // console.log("run clusterRunOnce1 ===>", process.pid) fun(); return; } @@ -56,7 +56,7 @@ export function clusterRunOnce(fun) { if (firstPid == process.pid) { //pm2的其中一个进程 - console.log("run clusterRunOnce2 ===>", process.pid) + // console.log("run clusterRunOnce2 ===>", process.pid) fun(); return; } diff --git a/src/module/collection_event.ts b/src/module/collection_event.ts index 6e47a03..3e1418a 100644 --- a/src/module/collection_event.ts +++ b/src/module/collection_event.ts @@ -57,6 +57,11 @@ export type eventType = { payForDiamond: { [time: number]: number } + yuandandingzhi: ResOpenZhoumolibao & { refreshTime: number; }; + yuandanduihuan: ResOpenZhoumolibao & { refreshTime: number; }; + yuandandamo: ResOpenZhoumolibao & { refreshTime: number; }; + yuandanzengli: ResOpenZhoumolibao & { refreshTime: number; }; + } & { [k: `${number}jijin`]: ResOpenYuedujijin; [k: `yangchengmubiao${number}`]: yangchengmubiao; @@ -67,6 +72,7 @@ export type eventType = { [k: `leijichongzhi${number}`]: Omit; [k: `qiridenglu${number}`]: Pick; [k: `leichonglibao${number}`]: ResOpenLeiChongLiBao & { opentime: number }; + [k: `yuandan${number}`]: christmas; }; export type CollectionEvent = { diff --git a/src/public/pay.ts b/src/public/pay.ts index b1302b5..884798a 100644 --- a/src/public/pay.ts +++ b/src/public/pay.ts @@ -233,12 +233,21 @@ export class PayFun { prize.push(...conf.prize) } //圣诞节活动充值 - try{ + try { await Christmasfun.payChristmas(payId, call); - }catch (e) { - console.log("Christmasfun.payChristmas Error",e); + } catch (e) { + console.log("Christmasfun.payChristmas Error", e); } + /** + * 如果是自选奖励,payArgs里传入自选项,直接发奖 + * 在check里判断拦截自选项的奖励 + */ + if (payArgs.selectPrize) { + prize.push(...payArgs.selectPrize) + } + + let isReplaceConf = await this.checkBuysAfterPay(uid, payId, conf, payArgs, player) if (isReplaceConf) { let prizePayId = `zuanshi_${conf.money}` diff --git a/src/shared/protocols/event/yuandan/PtlDMOpen.ts b/src/shared/protocols/event/yuandan/PtlDMOpen.ts new file mode 100644 index 0000000..0724ba5 --- /dev/null +++ b/src/shared/protocols/event/yuandan/PtlDMOpen.ts @@ -0,0 +1,13 @@ + +/** + * 元旦达摩 + */ +export type ReqDMOpen = { + +}; + +export type ResDMOpen = { + record:{ + [k: string]: any; + } +}; \ No newline at end of file diff --git a/src/shared/protocols/event/yuandan/PtlDMRec.ts b/src/shared/protocols/event/yuandan/PtlDMRec.ts new file mode 100644 index 0000000..5aa6964 --- /dev/null +++ b/src/shared/protocols/event/yuandan/PtlDMRec.ts @@ -0,0 +1,11 @@ + +/** + * 元旦达摩领奖 + */ +export type ReqDMRec = { + id: string +} + +export type ResDMRec = { + +} diff --git a/src/shared/protocols/event/yuandan/PtlDZOpen.ts b/src/shared/protocols/event/yuandan/PtlDZOpen.ts new file mode 100644 index 0000000..ef0f7b2 --- /dev/null +++ b/src/shared/protocols/event/yuandan/PtlDZOpen.ts @@ -0,0 +1,16 @@ + +/** + * 元旦定制 + */ +export type ReqDZOpen = { + +}; + +export type ResDZOpen = { + record:{ + [k: string]: any; + } + buyLog:{ + [k: string]: any; + } +}; \ No newline at end of file diff --git a/src/shared/protocols/event/yuandan/PtlDZRec.ts b/src/shared/protocols/event/yuandan/PtlDZRec.ts new file mode 100644 index 0000000..1942987 --- /dev/null +++ b/src/shared/protocols/event/yuandan/PtlDZRec.ts @@ -0,0 +1,10 @@ +/** + * 元旦定制领奖 + */ +export type ReqDZRec = { + id: string +} + +export type ResDZRec = { + +} diff --git a/src/shared/protocols/event/yuandan/PtlExchange.ts b/src/shared/protocols/event/yuandan/PtlExchange.ts new file mode 100644 index 0000000..25817f1 --- /dev/null +++ b/src/shared/protocols/event/yuandan/PtlExchange.ts @@ -0,0 +1,11 @@ + +/** + * 元旦兑换领奖 + */ +export type ReqExchange = { + id: string +} + +export type ResExchange = { + +} diff --git a/src/shared/protocols/event/yuandan/PtlExchangeOpen.ts b/src/shared/protocols/event/yuandan/PtlExchangeOpen.ts new file mode 100644 index 0000000..ca3afad --- /dev/null +++ b/src/shared/protocols/event/yuandan/PtlExchangeOpen.ts @@ -0,0 +1,12 @@ +/** + * 元旦兑换 + */ +export type ReqExchangeOpen = { + +} + +export type ResExchangeOpen = { + record:{ + [k: string]: any; + } +} diff --git a/src/shared/protocols/event/yuandan/PtlZLOpen.ts b/src/shared/protocols/event/yuandan/PtlZLOpen.ts new file mode 100644 index 0000000..f8e1829 --- /dev/null +++ b/src/shared/protocols/event/yuandan/PtlZLOpen.ts @@ -0,0 +1,13 @@ + +/** + * 元旦赠礼 + */ +export type ReqZLOpen = { + +}; + +export type ResZLOpen = { + record:{ + [k: string]: any; + } +}; \ No newline at end of file diff --git a/src/shared/protocols/event/yuandan/PtlZLRec.ts b/src/shared/protocols/event/yuandan/PtlZLRec.ts new file mode 100644 index 0000000..3152d3a --- /dev/null +++ b/src/shared/protocols/event/yuandan/PtlZLRec.ts @@ -0,0 +1,11 @@ + +/** + * 元旦赠礼领奖 + */ +export type ReqZLRec = { + id: string +} + +export type ResZLRec = { + +} diff --git a/src/shared/protocols/event/zhoumolibao/PtlReceive.ts b/src/shared/protocols/event/zhoumolibao/PtlReceive.ts index 72a0c09..9652cb7 100644 --- a/src/shared/protocols/event/zhoumolibao/PtlReceive.ts +++ b/src/shared/protocols/event/zhoumolibao/PtlReceive.ts @@ -1,10 +1,10 @@ /** * 周末礼包领奖 */ -export interface ReqReceive { +export type ReqReceive = { id: string } -export interface ResReceive { +export type ResReceive = { } diff --git a/src/shared/protocols/hongdian/PtlGet.ts b/src/shared/protocols/hongdian/PtlGet.ts index 67ceb0d..2d661c0 100644 --- a/src/shared/protocols/hongdian/PtlGet.ts +++ b/src/shared/protocols/hongdian/PtlGet.ts @@ -54,7 +54,8 @@ export type hongdianKey = | 'zhoumolibao' | 'pobinglibao' | 'payForDiamond' - | 'leichonglibao'; + | 'leichonglibao' + | 'yuandan'; export type hongdianVal = { show?: boolean; // 看功能需要 diff --git a/src/shared/protocols/serviceProto.ts b/src/shared/protocols/serviceProto.ts index 2afc7e8..9d4a22e 100644 --- a/src/shared/protocols/serviceProto.ts +++ b/src/shared/protocols/serviceProto.ts @@ -94,6 +94,14 @@ import { ReqRec as ReqRec_8, ResRec as ResRec_8 } from './event/yangchengmubiao/ import { ReqOpen as ReqOpen_26, ResOpen as ResOpen_26 } from './event/yibaichou/PtlOpen'; import { ReqRec as ReqRec_9, ResRec as ResRec_9 } from './event/yibaichou/PtlRec'; import { ReqRecAll, ResRecAll } from './event/yibaichou/PtlRecAll'; +import { ReqDMOpen, ResDMOpen } from './event/yuandan/PtlDMOpen'; +import { ReqDMRec, ResDMRec } from './event/yuandan/PtlDMRec'; +import { ReqDZOpen, ResDZOpen } from './event/yuandan/PtlDZOpen'; +import { ReqDZRec, ResDZRec } from './event/yuandan/PtlDZRec'; +import { ReqExchange, ResExchange } from './event/yuandan/PtlExchange'; +import { ReqExchangeOpen, ResExchangeOpen } from './event/yuandan/PtlExchangeOpen'; +import { ReqZLOpen, ResZLOpen } from './event/yuandan/PtlZLOpen'; +import { ReqZLRec, ResZLRec } from './event/yuandan/PtlZLRec'; import { ReqOpen as ReqOpen_27, ResOpen as ResOpen_27 } from './event/yuedujijin/PtlOpen'; import { ReqRec as ReqRec_10, ResRec as ResRec_10 } from './event/yuedujijin/PtlRec'; import { ReqBuyLv, ResBuyLv } from './event/zhanling/PtlBuyLv'; @@ -325,7 +333,7 @@ import { ReqRenownGetPrize, ResRenownGetPrize } from './user/PtlRenownGetPrize'; import { ReqRenownOpen, ResRenownOpen } from './user/PtlRenownOpen'; import { ReqTujian, ResTujian } from './user/PtlTujian'; import { ReqDecompose, ResDecompose } from './weixiuchang/PtlDecompose'; -import { ReqExchange, ResExchange } from './weixiuchang/PtlExchange'; +import { ReqExchange as ReqExchange_1, ResExchange as ResExchange_1 } from './weixiuchang/PtlExchange'; import { ReqOpen as ReqOpen_60, ResOpen as ResOpen_60 } from './weixiuchang/PtlOpen'; import { ReqUpLv, ResUpLv } from './weixiuchang/PtlUpLv'; import { ReqUpStar, ResUpStar } from './weixiuchang/PtlUpStar'; @@ -735,6 +743,38 @@ export interface ServiceType { req: ReqRecAll, res: ResRecAll }, + "event/yuandan/DMOpen": { + req: ReqDMOpen, + res: ResDMOpen + }, + "event/yuandan/DMRec": { + req: ReqDMRec, + res: ResDMRec + }, + "event/yuandan/DZOpen": { + req: ReqDZOpen, + res: ResDZOpen + }, + "event/yuandan/DZRec": { + req: ReqDZRec, + res: ResDZRec + }, + "event/yuandan/Exchange": { + req: ReqExchange, + res: ResExchange + }, + "event/yuandan/ExchangeOpen": { + req: ReqExchangeOpen, + res: ResExchangeOpen + }, + "event/yuandan/ZLOpen": { + req: ReqZLOpen, + res: ResZLOpen + }, + "event/yuandan/ZLRec": { + req: ReqZLRec, + res: ResZLRec + }, "event/yuedujijin/Open": { req: ReqOpen_27, res: ResOpen_27 @@ -1544,8 +1584,8 @@ export interface ServiceType { res: ResDecompose }, "weixiuchang/Exchange": { - req: ReqExchange, - res: ResExchange + req: ReqExchange_1, + res: ResExchange_1 }, "weixiuchang/Open": { req: ReqOpen_60, @@ -2164,6 +2204,46 @@ export const serviceProto: ServiceProto = { }, { "id": 95, + "name": "event/yuandan/DMOpen", + "type": "api" + }, + { + "id": 96, + "name": "event/yuandan/DMRec", + "type": "api" + }, + { + "id": 97, + "name": "event/yuandan/DZOpen", + "type": "api" + }, + { + "id": 98, + "name": "event/yuandan/DZRec", + "type": "api" + }, + { + "id": 99, + "name": "event/yuandan/Exchange", + "type": "api" + }, + { + "id": 100, + "name": "event/yuandan/ExchangeOpen", + "type": "api" + }, + { + "id": 101, + "name": "event/yuandan/ZLOpen", + "type": "api" + }, + { + "id": 102, + "name": "event/yuandan/ZLRec", + "type": "api" + }, + { + "id": 103, "name": "event/yuedujijin/Open", "type": "api", "conf": { @@ -2171,157 +2251,157 @@ export const serviceProto: ServiceProto = { } }, { - "id": 96, + "id": 104, "name": "event/yuedujijin/Rec", "type": "api" }, { - "id": 97, + "id": 105, "name": "event/zhanling/BuyLv", "type": "api" }, { - "id": 98, + "id": 106, "name": "event/zhanling/Open", "type": "api" }, { - "id": 99, + "id": 107, "name": "event/zhanling/RecPrize", "type": "api" }, { - "id": 100, + "id": 108, "name": "event/zhanling/RecTask", "type": "api" }, { - "id": 101, + "id": 109, "name": "event/zhoulibao/Open", "type": "api" }, { - "id": 102, + "id": 110, "name": "event/zhoumolibao/Open", "type": "api" }, { - "id": 103, + "id": 111, "name": "event/zhoumolibao/Receive", "type": "api" }, { - "id": 104, + "id": 112, "name": "event/zixuanlibao/Buy", "type": "api" }, { - "id": 105, + "id": 113, "name": "event/zixuanlibao/Open", "type": "api" }, { - "id": 106, + "id": 114, "name": "eventlist/hdGetList", "type": "api" }, { - "id": 107, + "id": 115, "name": "friend/Apply", "type": "api" }, { - "id": 108, + "id": 116, "name": "friend/Del", "type": "api" }, { - "id": 109, + "id": 117, "name": "friend/Gift", "type": "api" }, { - "id": 110, + "id": 118, "name": "friend/List", "type": "api" }, { - "id": 111, + "id": 119, "name": "friend/Open", "type": "api" }, { - "id": 112, + "id": 120, "name": "friend/Respond", "type": "api" }, { - "id": 113, + "id": 121, "name": "friend/RmBlackList", "type": "api" }, { - "id": 114, + "id": 122, "name": "friend/Search", "type": "api" }, { - "id": 115, + "id": 123, "name": "ganbutexun/Challenge", "type": "api" }, { - "id": 116, + "id": 124, "name": "ganbutexun/Open", "type": "api" }, { - "id": 117, + "id": 125, "name": "ganhai/Fast", "type": "api" }, { - "id": 118, + "id": 126, "name": "ganhai/Fight", "type": "api" }, { - "id": 119, + "id": 127, "name": "ganhai/Log", "type": "api" }, { - "id": 120, + "id": 128, "name": "ganhai/Open", "type": "api" }, { - "id": 121, + "id": 129, "name": "ganhai/Refresh", "type": "api" }, { - "id": 122, + "id": 130, "name": "ganhai/RefreshShip", "type": "api" }, { - "id": 123, + "id": 131, "name": "ganhai/Select", "type": "api" }, { - "id": 124, + "id": 132, "name": "gmapi/Gift", "type": "api" }, { - "id": 125, + "id": 133, "name": "gmapi/Post", "type": "api" }, { - "id": 126, + "id": 134, "name": "gonghui/Apply", "type": "api", "conf": { @@ -2331,7 +2411,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 127, + "id": 135, "name": "gonghui/ApplyAll", "type": "api", "conf": { @@ -2341,7 +2421,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 128, + "id": 136, "name": "gonghui/ApplyList", "type": "api", "conf": { @@ -2351,7 +2431,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 129, + "id": 137, "name": "gonghui/Change", "type": "api", "conf": { @@ -2361,12 +2441,12 @@ export const serviceProto: ServiceProto = { } }, { - "id": 130, + "id": 138, "name": "gonghui/Create", "type": "api" }, { - "id": 131, + "id": 139, "name": "gonghui/Dissolve", "type": "api", "conf": { @@ -2376,7 +2456,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 132, + "id": 140, "name": "gonghui/Exit", "type": "api", "conf": { @@ -2386,12 +2466,12 @@ export const serviceProto: ServiceProto = { } }, { - "id": 133, + "id": 141, "name": "gonghui/FbBuyNum", "type": "api" }, { - "id": 134, + "id": 142, "name": "gonghui/FbFight", "type": "api", "conf": { @@ -2401,7 +2481,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 135, + "id": 143, "name": "gonghui/FbOpen", "type": "api", "conf": { @@ -2411,17 +2491,17 @@ export const serviceProto: ServiceProto = { } }, { - "id": 136, + "id": 144, "name": "gonghui/GetList", "type": "api" }, { - "id": 137, + "id": 145, "name": "gonghui/Join", "type": "api" }, { - "id": 138, + "id": 146, "name": "gonghui/Jx", "type": "api", "conf": { @@ -2431,7 +2511,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 139, + "id": 147, "name": "gonghui/JxOpen", "type": "api", "conf": { @@ -2441,7 +2521,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 140, + "id": 148, "name": "gonghui/List", "type": "api", "conf": { @@ -2451,7 +2531,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 141, + "id": 149, "name": "gonghui/Manage", "type": "api", "conf": { @@ -2461,7 +2541,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 142, + "id": 150, "name": "gonghui/Open", "type": "api", "conf": { @@ -2471,7 +2551,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 143, + "id": 151, "name": "gonghui/TanHe", "type": "api", "conf": { @@ -2481,7 +2561,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 144, + "id": 152, "name": "gonghui/TaskOpen", "type": "api", "conf": { @@ -2491,7 +2571,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 145, + "id": 153, "name": "gonghui/TaskReceive", "type": "api", "conf": { @@ -2501,7 +2581,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 146, + "id": 154, "name": "gonghui/UpWz", "type": "api", "conf": { @@ -2511,137 +2591,137 @@ export const serviceProto: ServiceProto = { } }, { - "id": 147, + "id": 155, "name": "gonghuibaozang/Lottery", "type": "api" }, { - "id": 148, + "id": 156, "name": "gonghuibaozang/Open", "type": "api" }, { - "id": 149, + "id": 157, "name": "gonglukuangbiao/Buy", "type": "api" }, { - "id": 150, + "id": 158, "name": "gonglukuangbiao/Fight", "type": "api" }, { - "id": 151, + "id": 159, "name": "gonglukuangbiao/Open", "type": "api" }, { - "id": 152, + "id": 160, "name": "gonglukuangbiao/Refresh", "type": "api" }, { - "id": 153, + "id": 161, "name": "gongyu/mingdao/Active", "type": "api" }, { - "id": 154, + "id": 162, "name": "gongyu/mingdao/Open", "type": "api" }, { - "id": 155, + "id": 163, "name": "gongyu/mingdao/RecPrize", "type": "api" }, { - "id": 156, + "id": 164, "name": "gongyu/mingdao/Repair", "type": "api" }, { - "id": 157, + "id": 165, "name": "gongyu/xunlianjihua/Reset", "type": "api" }, { - "id": 158, + "id": 166, "name": "gongyu/xunlianjihua/UpSkill", "type": "api" }, { - "id": 159, + "id": 167, "name": "gongyu/zuozhanjihua/SetSkill", "type": "api" }, { - "id": 160, + "id": 168, "name": "hbzb/jfs/BuyNum", "type": "api" }, { - "id": 161, + "id": 169, "name": "hbzb/jfs/Fight", "type": "api" }, { - "id": 162, + "id": 170, "name": "hbzb/jfs/GetLog", "type": "api" }, { - "id": 163, + "id": 171, "name": "hbzb/jfs/Open", "type": "api" }, { - "id": 164, + "id": 172, "name": "hbzb/jfs/Rec", "type": "api" }, { - "id": 165, + "id": 173, "name": "hbzb/jfs/Refresh", "type": "api" }, { - "id": 166, + "id": 174, "name": "hbzb/GetStatus", "type": "api" }, { - "id": 167, + "id": 175, "name": "hbzb/zbs/BuyNum", "type": "api" }, { - "id": 168, + "id": 176, "name": "hbzb/zbs/Fight", "type": "api" }, { - "id": 169, + "id": 177, "name": "hbzb/zbs/GetLog", "type": "api" }, { - "id": 170, + "id": 178, "name": "hbzb/zbs/Open", "type": "api" }, { - "id": 171, + "id": 179, "name": "hbzb/zbs/Refresh", "type": "api" }, { - "id": 172, + "id": 180, "name": "hero/Awake", "type": "api" }, { - "id": 173, + "id": 181, "name": "hero/ChangePos", "type": "api", "conf": { @@ -2649,17 +2729,17 @@ export const serviceProto: ServiceProto = { } }, { - "id": 174, + "id": 182, "name": "hero/GetList", "type": "api" }, { - "id": 175, + "id": 183, "name": "hero/JinJie", "type": "api" }, { - "id": 176, + "id": 184, "name": "hero/LvUp", "type": "api", "conf": { @@ -2667,32 +2747,32 @@ export const serviceProto: ServiceProto = { } }, { - "id": 177, + "id": 185, "name": "hero/Potency", "type": "api" }, { - "id": 178, + "id": 186, "name": "hero/Rec", "type": "api" }, { - "id": 179, + "id": 187, "name": "hero/Reset", "type": "api" }, { - "id": 180, + "id": 188, "name": "hero/Talent", "type": "api" }, { - "id": 181, + "id": 189, "name": "hero/WeaponUp", "type": "api" }, { - "id": 182, + "id": 190, "name": "hongdian/Get", "type": "api", "conf": { @@ -2700,117 +2780,117 @@ export const serviceProto: ServiceProto = { } }, { - "id": 183, + "id": 191, "name": "item/GetList", "type": "api" }, { - "id": 184, + "id": 192, "name": "item/Use", "type": "api" }, { - "id": 185, + "id": 193, "name": "jiaotang/Lottery", "type": "api" }, { - "id": 186, + "id": 194, "name": "jiaotang/Open", "type": "api" }, { - "id": 187, + "id": 195, "name": "jiuba/Lottery", "type": "api" }, { - "id": 188, + "id": 196, "name": "jiuba/Open", "type": "api" }, { - "id": 189, + "id": 197, "name": "jjc/BuyFightNum", "type": "api" }, { - "id": 190, + "id": 198, "name": "jjc/Fight", "type": "api" }, { - "id": 191, + "id": 199, "name": "jjc/FightLog", "type": "api" }, { - "id": 192, + "id": 200, "name": "jjc/Open", "type": "api" }, { - "id": 193, + "id": 201, "name": "jjc/Receive", "type": "api" }, { - "id": 194, + "id": 202, "name": "jjc/Refresh", "type": "api" }, { - "id": 195, + "id": 203, "name": "kaifujingsai/Open", "type": "api" }, { - "id": 196, + "id": 204, "name": "kaifujingsai/Receive", "type": "api" }, { - "id": 197, + "id": 205, "name": "kbzz/Apply", "type": "api" }, { - "id": 198, + "id": 206, "name": "kbzz/AutoApply", "type": "api" }, { - "id": 199, + "id": 207, "name": "kbzz/BuyNum", "type": "api" }, { - "id": 200, + "id": 208, "name": "kbzz/Fight", "type": "api" }, { - "id": 201, + "id": 209, "name": "kbzz/FightLog", "type": "api" }, { - "id": 202, + "id": 210, "name": "kbzz/GroupState", "type": "api" }, { - "id": 203, + "id": 211, "name": "kbzz/Open", "type": "api" }, { - "id": 204, + "id": 212, "name": "kbzz/RecPrize", "type": "api" }, { - "id": 205, + "id": 213, "name": "kbzz/Refresh", "type": "api", "conf": { @@ -2818,287 +2898,287 @@ export const serviceProto: ServiceProto = { } }, { - "id": 206, + "id": 214, "name": "kuangdong/AddPkNum", "type": "api" }, { - "id": 207, + "id": 215, "name": "kuangdong/GetPrize", "type": "api" }, { - "id": 208, + "id": 216, "name": "kuangdong/KdInfo", "type": "api" }, { - "id": 209, + "id": 217, "name": "kuangdong/Log", "type": "api" }, { - "id": 210, + "id": 218, "name": "kuangdong/Open", "type": "api" }, { - "id": 211, + "id": 219, "name": "kuangdong/YanShi", "type": "api" }, { - "id": 212, + "id": 220, "name": "kuangdong/ZhanLing", "type": "api" }, { - "id": 213, + "id": 221, "name": "lingzhulaixi/Open", "type": "api" }, { - "id": 214, + "id": 222, "name": "lingzhulaixi/PkBoss", "type": "api" }, { - "id": 215, + "id": 223, "name": "lingzhulaixi/PkRank", "type": "api" }, { - "id": 216, + "id": 224, "name": "lingzhulaixi/SaoDang", "type": "api" }, { - "id": 217, + "id": 225, "name": "meirishilian/Buy", "type": "api" }, { - "id": 218, + "id": 226, "name": "meirishilian/Fight", "type": "api" }, { - "id": 219, + "id": 227, "name": "meirishilian/Open", "type": "api" }, { - "id": 220, + "id": 228, "name": "msg_c2s/BindUid", "type": "msg" }, { - "id": 221, + "id": 229, "name": "msg_c2s/Pay", "type": "msg" }, { - "id": 222, + "id": 230, "name": "msg_c2s/Sync", "type": "msg" }, { - "id": 223, + "id": 231, "name": "msg_s2c/Chat", "type": "msg" }, { - "id": 224, + "id": 232, "name": "msg_s2c/ChatHelp", "type": "msg" }, { - "id": 225, + "id": 233, "name": "msg_s2c/Collection", "type": "msg" }, { - "id": 226, + "id": 234, "name": "msg_s2c/Email", "type": "msg" }, { - "id": 227, + "id": 235, "name": "msg_s2c/EmailDel", "type": "msg" }, { - "id": 228, + "id": 236, "name": "msg_s2c/EquipChange", "type": "msg" }, { - "id": 229, + "id": 237, "name": "msg_s2c/Friend", "type": "msg" }, { - "id": 230, + "id": 238, "name": "msg_s2c/GhChange", "type": "msg" }, { - "id": 231, + "id": 239, "name": "msg_s2c/GongHuiBaoZang", "type": "msg" }, { - "id": 232, + "id": 240, "name": "msg_s2c/HeroChange", "type": "msg" }, { - "id": 233, + "id": 241, "name": "msg_s2c/HongDianChange", "type": "msg" }, { - "id": 234, + "id": 242, "name": "msg_s2c/ItemChange", "type": "msg" }, { - "id": 235, + "id": 243, "name": "msg_s2c/LoginQueue", "type": "msg" }, { - "id": 236, + "id": 244, "name": "msg_s2c/LshdChange", "type": "msg" }, { - "id": 237, + "id": 245, "name": "msg_s2c/NewDay", "type": "msg" }, { - "id": 238, + "id": 246, "name": "msg_s2c/OtherLogin", "type": "msg" }, { - "id": 239, + "id": 247, "name": "msg_s2c/PayChange", "type": "msg" }, { - "id": 240, + "id": 248, "name": "msg_s2c/PayResult", "type": "msg" }, { - "id": 241, + "id": 249, "name": "msg_s2c/PeijianChange", "type": "msg" }, { - "id": 242, + "id": 250, "name": "msg_s2c/PlayerChange", "type": "msg" }, { - "id": 243, + "id": 251, "name": "msg_s2c/Private", "type": "msg" }, { - "id": 244, + "id": 252, "name": "msg_s2c/PushGiftChange", "type": "msg" }, { - "id": 245, + "id": 253, "name": "msg_s2c/SendGift", "type": "msg" }, { - "id": 246, + "id": 254, "name": "msg_s2c/ShiwuChange", "type": "msg" }, { - "id": 247, + "id": 255, "name": "msg_s2c/TaskChange", "type": "msg" }, { - "id": 248, + "id": 256, "name": "msg_s2c/Xianshilibao", "type": "msg" }, { - "id": 249, + "id": 257, "name": "pata/Fight", "type": "api" }, { - "id": 250, + "id": 258, "name": "pata/GetPrize", "type": "api" }, { - "id": 251, + "id": 259, "name": "pata/Open", "type": "api" }, { - "id": 252, + "id": 260, "name": "pata/SaoDang", "type": "api" }, { - "id": 253, + "id": 261, "name": "pay/GetList", "type": "api" }, { - "id": 254, + "id": 262, "name": "peijian/GetList", "type": "api" }, { - "id": 255, + "id": 263, "name": "peijian/JingLian", "type": "api" }, { - "id": 256, + "id": 264, "name": "peijian/JinJie", "type": "api" }, { - "id": 257, + "id": 265, "name": "peijian/LvUp", "type": "api" }, { - "id": 258, + "id": 266, "name": "peijian/OneKeyLvUp", "type": "api" }, { - "id": 259, + "id": 267, "name": "peijian/OneKeyWear", "type": "api" }, { - "id": 260, + "id": 268, "name": "peijian/Reset", "type": "api" }, { - "id": 261, + "id": 269, "name": "peijian/Rm", "type": "api" }, { - "id": 262, + "id": 270, "name": "peijian/TakeOff", "type": "api", "conf": { @@ -3106,32 +3186,32 @@ export const serviceProto: ServiceProto = { } }, { - "id": 263, + "id": 271, "name": "peijian/UnLock", "type": "api" }, { - "id": 264, + "id": 272, "name": "peijian/Wear", "type": "api" }, { - "id": 265, + "id": 273, "name": "peijiancangku/Deal", "type": "api" }, { - "id": 266, + "id": 274, "name": "peijiancangku/Jump", "type": "api" }, { - "id": 267, + "id": 275, "name": "peijiancangku/Open", "type": "api" }, { - "id": 268, + "id": 276, "name": "Bingo", "type": "api", "conf": { @@ -3139,147 +3219,147 @@ export const serviceProto: ServiceProto = { } }, { - "id": 269, + "id": 277, "name": "FightTest", "type": "api" }, { - "id": 270, + "id": 278, "name": "SyncBtn", "type": "api" }, { - "id": 271, + "id": 279, "name": "Test", "type": "api" }, { - "id": 272, + "id": 280, "name": "pushgift/ItemNoEnough", "type": "api" }, { - "id": 273, + "id": 281, "name": "pushgift/Open", "type": "api" }, { - "id": 274, + "id": 282, "name": "qjzzd/Fight", "type": "api" }, { - "id": 275, + "id": 283, "name": "qjzzd/Open", "type": "api" }, { - "id": 276, + "id": 284, "name": "rank/Open", "type": "api" }, { - "id": 277, + "id": 285, "name": "shiwu/Concise", "type": "api" }, { - "id": 278, + "id": 286, "name": "shiwu/Extract", "type": "api" }, { - "id": 279, + "id": 287, "name": "shiwu/GetList", "type": "api" }, { - "id": 280, + "id": 288, "name": "shiwu/LvUp", "type": "api" }, { - "id": 281, + "id": 289, "name": "shiwu/Recast", "type": "api" }, { - "id": 282, + "id": 290, "name": "shiwu/TakeOff", "type": "api" }, { - "id": 283, + "id": 291, "name": "shiwu/Wear", "type": "api" }, { - "id": 284, + "id": 292, "name": "shootGame/Open", "type": "api" }, { - "id": 285, + "id": 293, "name": "shootGame/Rec", "type": "api" }, { - "id": 286, + "id": 294, "name": "shop/Buy", "type": "api" }, { - "id": 287, + "id": 295, "name": "shop/Open", "type": "api" }, { - "id": 288, + "id": 296, "name": "shop/Refresh", "type": "api" }, { - "id": 289, + "id": 297, "name": "sign/GetBoxPrize", "type": "api" }, { - "id": 290, + "id": 298, "name": "sign/GetPrize", "type": "api" }, { - "id": 291, + "id": 299, "name": "sign/Open", "type": "api" }, { - "id": 292, + "id": 300, "name": "slzd/Aim", "type": "api" }, { - "id": 293, + "id": 301, "name": "slzd/BuyNum", "type": "api" }, { - "id": 294, + "id": 302, "name": "slzd/Fight", "type": "api" }, { - "id": 295, + "id": 303, "name": "slzd/FightLog", "type": "api" }, { - "id": 296, + "id": 304, "name": "slzd/MyRank", "type": "api" }, { - "id": 297, + "id": 305, "name": "slzd/Open", "type": "api", "conf": { @@ -3289,77 +3369,77 @@ export const serviceProto: ServiceProto = { } }, { - "id": 298, + "id": 306, "name": "slzd/OpenFort", "type": "api" }, { - "id": 299, + "id": 307, "name": "slzd/Rec", "type": "api" }, { - "id": 300, + "id": 308, "name": "slzd/Refresh", "type": "api" }, { - "id": 301, + "id": 309, "name": "slzd/Slot", "type": "api" }, { - "id": 302, + "id": 310, "name": "tanxian/Event", "type": "api" }, { - "id": 303, + "id": 311, "name": "tanxian/FastGuaJi", "type": "api" }, { - "id": 304, + "id": 312, "name": "tanxian/Fight", "type": "api" }, { - "id": 305, + "id": 313, "name": "tanxian/GuaJi", "type": "api" }, { - "id": 306, + "id": 314, "name": "tanxian/Open", "type": "api" }, { - "id": 307, + "id": 315, "name": "tanxian/Receive", "type": "api" }, { - "id": 308, + "id": 316, "name": "task/AllFinsh", "type": "api" }, { - "id": 309, + "id": 317, "name": "task/Finsh", "type": "api" }, { - "id": 310, + "id": 318, "name": "task/Open", "type": "api" }, { - "id": 311, + "id": 319, "name": "user/CDKEY", "type": "api" }, { - "id": 312, + "id": 320, "name": "user/ChangeInfo", "type": "api", "conf": { @@ -3367,202 +3447,202 @@ export const serviceProto: ServiceProto = { } }, { - "id": 313, + "id": 321, "name": "user/ChangeName", "type": "api" }, { - "id": 314, + "id": 322, "name": "user/Dot", "type": "api" }, { - "id": 315, + "id": 323, "name": "user/Fight", "type": "api" }, { - "id": 316, + "id": 324, "name": "user/GetInfo", "type": "api" }, { - "id": 317, + "id": 325, "name": "user/InfoOpen", "type": "api" }, { - "id": 318, + "id": 326, "name": "user/Login", "type": "api" }, { - "id": 319, + "id": 327, "name": "user/Ping", "type": "api" }, { - "id": 320, + "id": 328, "name": "user/Renown", "type": "api" }, { - "id": 321, + "id": 329, "name": "user/RenownBuy", "type": "api" }, { - "id": 322, + "id": 330, "name": "user/RenownGetPrize", "type": "api" }, { - "id": 323, + "id": 331, "name": "user/RenownOpen", "type": "api" }, { - "id": 324, + "id": 332, "name": "user/Tujian", "type": "api" }, { - "id": 325, + "id": 333, "name": "weixiuchang/Decompose", "type": "api" }, { - "id": 326, + "id": 334, "name": "weixiuchang/Exchange", "type": "api" }, { - "id": 327, + "id": 335, "name": "weixiuchang/Open", "type": "api" }, { - "id": 328, + "id": 336, "name": "weixiuchang/UpLv", "type": "api" }, { - "id": 329, + "id": 337, "name": "weixiuchang/UpStar", "type": "api" }, { - "id": 330, + "id": 338, "name": "wzry/AutoBaoMing", "type": "api" }, { - "id": 331, + "id": 339, "name": "wzry/BaoMing", "type": "api" }, { - "id": 332, + "id": 340, "name": "wzry/catFightLog", "type": "api" }, { - "id": 333, + "id": 341, "name": "wzry/CatGroup", "type": "api" }, { - "id": 334, + "id": 342, "name": "wzry/DldFight", "type": "api" }, { - "id": 335, + "id": 343, "name": "wzry/DldRefre", "type": "api" }, { - "id": 336, + "id": 344, "name": "wzry/JingCai", "type": "api" }, { - "id": 337, + "id": 345, "name": "wzry/JingCaiOpen", "type": "api" }, { - "id": 338, + "id": 346, "name": "wzry/Open", "type": "api" }, { - "id": 339, + "id": 347, "name": "wzry/UpdateFight", "type": "api" }, { - "id": 340, + "id": 348, "name": "wzry/Wzzd", "type": "api" }, { - "id": 341, + "id": 349, "name": "wzry/ZuanShiOpen", "type": "api" }, { - "id": 342, + "id": 350, "name": "xstask/AllGet", "type": "api" }, { - "id": 343, + "id": 351, "name": "xstask/Get", "type": "api" }, { - "id": 344, + "id": 352, "name": "xstask/LvUp", "type": "api" }, { - "id": 345, + "id": 353, "name": "xstask/OnekeyReceive", "type": "api" }, { - "id": 346, + "id": 354, "name": "xstask/Open", "type": "api" }, { - "id": 347, + "id": 355, "name": "xstask/Receive", "type": "api" }, { - "id": 348, + "id": 356, "name": "xstask/Refresh", "type": "api" }, { - "id": 349, + "id": 357, "name": "yongbingzhuzhan/Handle", "type": "api" }, { - "id": 350, + "id": 358, "name": "zhanqianbushu/ChangePos", "type": "api" }, { - "id": 351, + "id": 359, "name": "zhanqianbushu/Select", "type": "api" }, { - "id": 352, + "id": 360, "name": "zhanqianbushu/Up", "type": "api" } @@ -11338,6 +11418,163 @@ export const serviceProto: ServiceProto = { } ] }, + "event/yuandan/PtlDMOpen/ReqDMOpen": { + "type": "Interface" + }, + "event/yuandan/PtlDMOpen/ResDMOpen": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "record", + "type": { + "type": "Interface", + "indexSignature": { + "keyType": "String", + "type": { + "type": "Any" + } + } + } + } + ] + }, + "event/yuandan/PtlDMRec/ReqDMRec": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "id", + "type": { + "type": "String" + } + } + ] + }, + "event/yuandan/PtlDMRec/ResDMRec": { + "type": "Interface" + }, + "event/yuandan/PtlDZOpen/ReqDZOpen": { + "type": "Interface" + }, + "event/yuandan/PtlDZOpen/ResDZOpen": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "record", + "type": { + "type": "Interface", + "indexSignature": { + "keyType": "String", + "type": { + "type": "Any" + } + } + } + }, + { + "id": 1, + "name": "buyLog", + "type": { + "type": "Interface", + "indexSignature": { + "keyType": "String", + "type": { + "type": "Any" + } + } + } + } + ] + }, + "event/yuandan/PtlDZRec/ReqDZRec": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "id", + "type": { + "type": "String" + } + } + ] + }, + "event/yuandan/PtlDZRec/ResDZRec": { + "type": "Interface" + }, + "event/yuandan/PtlExchange/ReqExchange": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "id", + "type": { + "type": "String" + } + } + ] + }, + "event/yuandan/PtlExchange/ResExchange": { + "type": "Interface" + }, + "event/yuandan/PtlExchangeOpen/ReqExchangeOpen": { + "type": "Interface" + }, + "event/yuandan/PtlExchangeOpen/ResExchangeOpen": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "record", + "type": { + "type": "Interface", + "indexSignature": { + "keyType": "String", + "type": { + "type": "Any" + } + } + } + } + ] + }, + "event/yuandan/PtlZLOpen/ReqZLOpen": { + "type": "Interface" + }, + "event/yuandan/PtlZLOpen/ResZLOpen": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "record", + "type": { + "type": "Interface", + "indexSignature": { + "keyType": "String", + "type": { + "type": "Any" + } + } + } + } + ] + }, + "event/yuandan/PtlZLRec/ReqZLRec": { + "type": "Interface", + "properties": [ + { + "id": 0, + "name": "id", + "type": { + "type": "String" + } + } + ] + }, + "event/yuandan/PtlZLRec/ResZLRec": { + "type": "Interface" + }, "event/yuedujijin/PtlOpen/ReqOpen": { "type": "Interface", "properties": [ @@ -15331,6 +15568,13 @@ export const serviceProto: ServiceProto = { "type": "Literal", "literal": "leichonglibao" } + }, + { + "id": 40, + "type": { + "type": "Literal", + "literal": "yuandan" + } } ] },