diff --git a/src/api_s2c/event/shiwuleichong/ApiOpen.ts b/src/api_s2c/event/shiwuleichong/ApiOpen.ts index 63aa21d..5763d97 100644 --- a/src/api_s2c/event/shiwuleichong/ApiOpen.ts +++ b/src/api_s2c/event/shiwuleichong/ApiOpen.ts @@ -1,41 +1,43 @@ -import { UpdateFilter } from 'mongodb'; -import { ApiCall } from "tsrpc"; -import { CollectionEvent } from '../../../module/collection_event'; -import { PayFun } from '../../../public/pay'; -import { ReqOpen, ResOpen } from "../../../shared/protocols/event/shiwuleichong/PtlOpen"; -import { PublicShared } from '../../../shared/public/public'; +import {ApiCall} from "tsrpc"; +import {ReqOpen, ResOpen} from "../../../shared/protocols/event/shiwuleichong/PtlOpen"; +import {PayFun} from "../../../public/pay"; +import {PublicShared} from "../../../shared/public/public"; + export default async function (call: ApiCall) { - let db = await G.mongodb.cEvent('15leichong').findOne({ uid: call.uid, type: '15leichong' }); - let update: UpdateFilter>; - let sTime = PublicShared.getToDayZeroTime(G.time); + let payids = G.gc.shiwuleichong.tasks.map( + (i) => i.payid + ); - if (!db) { - update = { - $set: { index: 0, sTime: sTime, recIndex: [] } - }; - } else { - if (db.sTime + G.gc.shiwuleichong.data[db.index].time < G.time) { - - db.sTime = sTime; - db.index = G.gc.shiwuleichong.data[db.index + 1] == undefined ? db.index : db.index + 1; - db.recIndex = []; - - update = { - $set: { index: db.index, sTime: db.sTime, recIndex: [] } - }; + let day: number = 1; + let _zt = PublicShared.getToDayZeroTime(); + let pays = await PayFun.getPayLogs(call.uid, payids); + for (; day <= G.gc.shiwuleichong.tasks.length; day++) { + let pay = pays[G.gc.shiwuleichong.tasks[day].payid]; + if (!pay) { + break } else { - sTime = db.sTime; + if (pay.slice(-1)[0].time >= _zt) { + break + } } } - - update && G.mongodb.cEvent('15leichong').updateOne({ uid: call.uid, type: '15leichong' }, update, { upsert: true }); - let index = db?.index || 0; + // 如果是最后一天奖励 并且 充值订单隔天了 + if ( + day == G.gc.shiwuleichong.tasks.length && + pays[G.gc.shiwuleichong.tasks[day - 1].payid] && + pays[G.gc.shiwuleichong.tasks[day - 1].payid].slice(-1)[0].time < _zt + ) { + // 重置所有订单 + await PayFun.delPayLog(call.uid, ...payids.map(i => { + return {payId: i, val: []} + })) + day = 1; + pays = {}; + } call.succ({ - index: index, - sTime: sTime, - recIndex: db?.recIndex || [], - payDay: await PayFun.getPayDaysBuyPayNum(call.uid, sTime, sTime + G.gc.shiwuleichong.data[index].time, G.gc.shiwuleichong.dayPayNeed) + day: day, + payIds: Object.keys(pays) }); } \ No newline at end of file diff --git a/src/api_s2c/event/shiwuleichong/ApiRec.ts b/src/api_s2c/event/shiwuleichong/ApiRec.ts deleted file mode 100644 index f9cf51e..0000000 --- a/src/api_s2c/event/shiwuleichong/ApiRec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { ApiCall } from "tsrpc"; -import { PayFun } from '../../../public/pay'; -import { PlayerFun } from '../../../public/player'; -import { ReqRec, ResRec } from "../../../shared/protocols/event/shiwuleichong/PtlRec"; - -export default async function (call: ApiCall) { - let db = await G.mongodb.cEvent('15leichong').findOne({ uid: call.uid, type: '15leichong' }); - let confArr = G.gc.shiwuleichong.data[db.index]; - - if (!confArr.tasks[call.req.index]) return call.error('', { code: -1 }); - if (db.recIndex.includes(call.req.index)) return call.error('', { code: -2 }); - - let payDay = await PayFun.getPayDaysBuyPayNum(call.uid, db.sTime, db.sTime + confArr.time, G.gc.shiwuleichong.dayPayNeed); - if (payDay < confArr.tasks[call.req.index].total) return call.error('', { code: -3 }); - - await PlayerFun.sendPrize(call, confArr.tasks[call.req.index].prize); - - G.mongodb.cEvent('15leichong').updateOne( - { uid: call.uid, type: '15leichong' }, - { $push: { recIndex: call.req.index } } - ); - - call.succ({ - prize: confArr.tasks[call.req.index].prize - }); -} \ No newline at end of file diff --git a/src/api_s2c/hongdian/fun.ts b/src/api_s2c/hongdian/fun.ts index 867eb16..4b58691 100644 --- a/src/api_s2c/hongdian/fun.ts +++ b/src/api_s2c/hongdian/fun.ts @@ -877,7 +877,7 @@ export class HuoDongHongDianFun { } }; _res.val.meirijingxuan = await this.heiShiHongDian(call) - _res.val.jitianhaoli = await this.heiShiLCHongDian(call) + // _res.val.jitianhaoli = await this.heiShiLCHongDian(call) _res.val.niudanji = await this.heiShiNiuDanJi(call) Object.values(_res.val).forEach(x => _res.show = _res.show || x.show) return _res @@ -913,25 +913,25 @@ export class HuoDongHongDianFun { } /**黑市 积天豪礼 */ - static async heiShiLCHongDian(call: ApiCall): Promise { - let _res: hongdianVal = { - show: false - }; - let db = await G.mongodb.cEvent('15leichong').findOne({uid: call.uid, type: '15leichong'}); - - if (!db) return _res; - - let _con = G.gc.shiwuleichong.data[db.index]; - let payDay = await PayFun.getPayDaysBuyPayNum(call.uid, db.sTime, db.sTime + _con.time, G.gc.shiwuleichong.dayPayNeed); - for (let index = 0; index < _con.tasks.length; index++) { - const element = _con.tasks[index]; - if (db.recIndex.includes(index)) continue; - if (payDay < element.total) continue; - _res.show = true; - break; - } - return _res; - } + // static async heiShiLCHongDian(call: ApiCall): Promise { + // let _res: hongdianVal = { + // show: false + // }; + // let db = await G.mongodb.cEvent('15leichong').findOne({uid: call.uid, type: '15leichong'}); + // + // if (!db) return _res; + // + // let _con = G.gc.shiwuleichong.data[db.index]; + // let payDay = await PayFun.getPayDaysBuyPayNum(call.uid, db.sTime, db.sTime + _con.time, G.gc.shiwuleichong.dayPayNeed); + // for (let index = 0; index < _con.tasks.length; index++) { + // const element = _con.tasks[index]; + // if (db.recIndex.includes(index)) continue; + // if (payDay < element.total) continue; + // _res.show = true; + // break; + // } + // return _res; + // } /**黑市 扭蛋机 */ static async heiShiNiuDanJi(call: ApiCall): Promise { diff --git a/src/jsonType.ts b/src/jsonType.ts index 3b8f547..8788f60 100644 --- a/src/jsonType.ts +++ b/src/jsonType.ts @@ -1179,7 +1179,7 @@ type gc_shiwucom = { }, "comment": { "jichu_colour": string, "fujia_colour": string, "fujianum_colour": string, "putongxilian": string, "gaojixilian": string, "hero_zhuanshu": string, "buff_zhuanshu": string, "skill_zhuanshu": string, "chongzhuneed": string, "chongzhurate": string, "tilianhuobi": string, [x: string]: any }, [x: string]: any } -type gc_shiwuleichong = { "dayPayNeed": number, "data": { "time": number, "tasks": { "total": number, "prize": { "a": string, "t": string, "n": number, [x: string]: any }[], [x: string]: any }[], [x: string]: any }[], [x: string]: any } +type gc_shiwuleichong = { tasks: { day: number, payid: string }[] } type gc_shoot = { [key: string]: { "name": string, "num": number, "speed": number, "cartridge": number, "time": number, "prize": { [key: string]: { "describe": string, "hit": number, "content": { "a": string, "t": string, "n": number, [x: string]: any }[], [x: string]: any } }, [x: string]: any } } diff --git a/src/shared/protocols/event/shiwuleichong/PtlOpen.ts b/src/shared/protocols/event/shiwuleichong/PtlOpen.ts index 5988d1b..baf05a9 100644 --- a/src/shared/protocols/event/shiwuleichong/PtlOpen.ts +++ b/src/shared/protocols/event/shiwuleichong/PtlOpen.ts @@ -1,18 +1,10 @@ - /** * 进入15天累充 */ -export type ReqOpen = { - -}; +export type ReqOpen = {}; export type ResOpen = { /**礼包组 取G.gc.shiwuleichong[index] */ - index: number; - /**开始时间 倒计时显示 sTime+G.gc.shiwuleichong[index].time */ - sTime: number; - /**已领取的奖励下标 */ - recIndex: number[]; - /**已充值的天数 */ - payDay: number; + day: number; + payIds: string[]; }; \ No newline at end of file diff --git a/src/shared/protocols/event/shiwuleichong/PtlRec.ts b/src/shared/protocols/event/shiwuleichong/PtlRec.ts deleted file mode 100644 index 0bf0af1..0000000 --- a/src/shared/protocols/event/shiwuleichong/PtlRec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { prizeType } from '../../type'; - - -/** - * 领取15天累充奖励 - */ -export type ReqRec = { - index: number; -}; - -export type ResRec = { - prize: prizeType[]; -}; \ No newline at end of file diff --git a/src/shared/protocols/serviceProto.ts b/src/shared/protocols/serviceProto.ts index 218afc9..42ce9dd 100644 --- a/src/shared/protocols/serviceProto.ts +++ b/src/shared/protocols/serviceProto.ts @@ -73,23 +73,22 @@ import { ReqRec as ReqRec_6, ResRec as ResRec_6 } from './event/qirichongzhi/Ptl import { ReqOpen as ReqOpen_17, ResOpen as ResOpen_17 } from './event/qiridenglu/PtlOpen'; import { ReqRecPrize as ReqRecPrize_1, ResRecPrize as ResRecPrize_1 } from './event/qiridenglu/PtlRecPrize'; import { ReqOpen as ReqOpen_18, ResOpen as ResOpen_18 } from './event/shiwuleichong/PtlOpen'; -import { ReqRec as ReqRec_7, ResRec as ResRec_7 } from './event/shiwuleichong/PtlRec'; import { ReqOpen as ReqOpen_19, ResOpen as ResOpen_19 } from './event/shouchong/PtlOpen'; import { ReqReceive as ReqReceive_2, ResReceive as ResReceive_2 } from './event/shouchong/PtlReceive'; import { ReqBuy as ReqBuy_1, ResBuy as ResBuy_1 } from './event/xianshizhaomu/PtlBuy'; import { ReqDuihuan, ResDuihuan } from './event/xianshizhaomu/PtlDuihuan'; import { ReqLottery as ReqLottery_1, ResLottery as ResLottery_1 } from './event/xianshizhaomu/PtlLottery'; import { ReqOpen as ReqOpen_20, ResOpen as ResOpen_20 } from './event/xianshizhaomu/PtlOpen'; -import { ReqRec as ReqRec_8, ResRec as ResRec_8 } from './event/xianshizhaomu/PtlRec'; +import { ReqRec as ReqRec_7, ResRec as ResRec_7 } from './event/xianshizhaomu/PtlRec'; import { ReqOpen as ReqOpen_21, ResOpen as ResOpen_21 } from './event/xinshoulibao/PtlOpen'; import { ReqBuy as ReqBuy_2, ResBuy as ResBuy_2 } from './event/yangchengmubiao/PtlBuy'; import { ReqOpen as ReqOpen_22, ResOpen as ResOpen_22 } from './event/yangchengmubiao/PtlOpen'; -import { ReqRec as ReqRec_9, ResRec as ResRec_9 } from './event/yangchengmubiao/PtlRec'; +import { ReqRec as ReqRec_8, ResRec as ResRec_8 } from './event/yangchengmubiao/PtlRec'; import { ReqOpen as ReqOpen_23, ResOpen as ResOpen_23 } from './event/yibaichou/PtlOpen'; -import { ReqRec as ReqRec_10, ResRec as ResRec_10 } from './event/yibaichou/PtlRec'; +import { ReqRec as ReqRec_9, ResRec as ResRec_9 } from './event/yibaichou/PtlRec'; import { ReqRecAll, ResRecAll } from './event/yibaichou/PtlRecAll'; import { ReqOpen as ReqOpen_24, ResOpen as ResOpen_24 } from './event/yuedujijin/PtlOpen'; -import { ReqRec as ReqRec_11, ResRec as ResRec_11 } from './event/yuedujijin/PtlRec'; +import { ReqRec as ReqRec_10, ResRec as ResRec_10 } from './event/yuedujijin/PtlRec'; import { ReqBuyLv, ResBuyLv } from './event/zhanling/PtlBuyLv'; import { ReqOpen as ReqOpen_25, ResOpen as ResOpen_25 } from './event/zhanling/PtlOpen'; import { ReqRecPrize as ReqRecPrize_2, ResRecPrize as ResRecPrize_2 } from './event/zhanling/PtlRecPrize'; @@ -157,7 +156,7 @@ import { ReqBuyNum as ReqBuyNum_1, ResBuyNum as ResBuyNum_1 } from './hbzb/jfs/P import { ReqFight as ReqFight_3, ResFight as ResFight_3 } from './hbzb/jfs/PtlFight'; import { ReqGetLog as ReqGetLog_1, ResGetLog as ResGetLog_1 } from './hbzb/jfs/PtlGetLog'; import { ReqOpen as ReqOpen_36, ResOpen as ResOpen_36 } from './hbzb/jfs/PtlOpen'; -import { ReqRec as ReqRec_12, ResRec as ResRec_12 } from './hbzb/jfs/PtlRec'; +import { ReqRec as ReqRec_11, ResRec as ResRec_11 } from './hbzb/jfs/PtlRec'; import { ReqRefresh as ReqRefresh_2, ResRefresh as ResRefresh_2 } from './hbzb/jfs/PtlRefresh'; import { ReqGetStatus, ResGetStatus } from './hbzb/PtlGetStatus'; import { ReqBuyNum as ReqBuyNum_2, ResBuyNum as ResBuyNum_2 } from './hbzb/zbs/PtlBuyNum'; @@ -171,7 +170,7 @@ import { ReqGetList as ReqGetList_3, ResGetList as ResGetList_3 } from './hero/P import { ReqJinJie, ResJinJie } from './hero/PtlJinJie'; import { ReqLvUp as ReqLvUp_1, ResLvUp as ResLvUp_1 } from './hero/PtlLvUp'; import { ReqPotency, ResPotency } from './hero/PtlPotency'; -import { ReqRec as ReqRec_13, ResRec as ResRec_13 } from './hero/PtlRec'; +import { ReqRec as ReqRec_12, ResRec as ResRec_12 } from './hero/PtlRec'; import { ReqReset as ReqReset_2, ResReset as ResReset_2 } from './hero/PtlReset'; import { ReqTalent, ResTalent } from './hero/PtlTalent'; import { ReqWeaponUp, ResWeaponUp } from './hero/PtlWeaponUp'; @@ -277,7 +276,7 @@ import { ReqRecast, ResRecast } from './shiwu/PtlRecast'; import { ReqTakeOff as ReqTakeOff_2, ResTakeOff as ResTakeOff_2 } from './shiwu/PtlTakeOff'; import { ReqWear as ReqWear_2, ResWear as ResWear_2 } from './shiwu/PtlWear'; import { ReqOpen as ReqOpen_51, ResOpen as ResOpen_51 } from './shootGame/PtlOpen'; -import { ReqRec as ReqRec_14, ResRec as ResRec_14 } from './shootGame/PtlRec'; +import { ReqRec as ReqRec_13, ResRec as ResRec_13 } from './shootGame/PtlRec'; import { ReqBuy as ReqBuy_6, ResBuy as ResBuy_6 } from './shop/PtlBuy'; import { ReqOpen as ReqOpen_52, ResOpen as ResOpen_52 } from './shop/PtlOpen'; import { ReqRefresh as ReqRefresh_6, ResRefresh as ResRefresh_6 } from './shop/PtlRefresh'; @@ -291,7 +290,7 @@ import { ReqFightLog as ReqFightLog_2, ResFightLog as ResFightLog_2 } from './sl import { ReqMyRank, ResMyRank } from './slzd/PtlMyRank'; import { ReqOpen as ReqOpen_54, ResOpen as ResOpen_54 } from './slzd/PtlOpen'; import { ReqOpenFort, ResOpenFort } from './slzd/PtlOpenFort'; -import { ReqRec as ReqRec_15, ResRec as ResRec_15 } from './slzd/PtlRec'; +import { ReqRec as ReqRec_14, ResRec as ResRec_14 } from './slzd/PtlRec'; import { ReqRefresh as ReqRefresh_7, ResRefresh as ResRefresh_7 } from './slzd/PtlRefresh'; import { ReqSlot, ResSlot } from './slzd/PtlSlot'; import { ReqEvent, ResEvent } from './tanxian/PtlEvent'; @@ -643,10 +642,6 @@ export interface ServiceType { req: ReqOpen_18, res: ResOpen_18 }, - "event/shiwuleichong/Rec": { - req: ReqRec_7, - res: ResRec_7 - }, "event/shouchong/Open": { req: ReqOpen_19, res: ResOpen_19 @@ -672,8 +667,8 @@ export interface ServiceType { res: ResOpen_20 }, "event/xianshizhaomu/Rec": { - req: ReqRec_8, - res: ResRec_8 + req: ReqRec_7, + res: ResRec_7 }, "event/xinshoulibao/Open": { req: ReqOpen_21, @@ -688,16 +683,16 @@ export interface ServiceType { res: ResOpen_22 }, "event/yangchengmubiao/Rec": { - req: ReqRec_9, - res: ResRec_9 + req: ReqRec_8, + res: ResRec_8 }, "event/yibaichou/Open": { req: ReqOpen_23, res: ResOpen_23 }, "event/yibaichou/Rec": { - req: ReqRec_10, - res: ResRec_10 + req: ReqRec_9, + res: ResRec_9 }, "event/yibaichou/RecAll": { req: ReqRecAll, @@ -708,8 +703,8 @@ export interface ServiceType { res: ResOpen_24 }, "event/yuedujijin/Rec": { - req: ReqRec_11, - res: ResRec_11 + req: ReqRec_10, + res: ResRec_10 }, "event/zhanling/BuyLv": { req: ReqBuyLv, @@ -980,8 +975,8 @@ export interface ServiceType { res: ResOpen_36 }, "hbzb/jfs/Rec": { - req: ReqRec_12, - res: ResRec_12 + req: ReqRec_11, + res: ResRec_11 }, "hbzb/jfs/Refresh": { req: ReqRefresh_2, @@ -1036,8 +1031,8 @@ export interface ServiceType { res: ResPotency }, "hero/Rec": { - req: ReqRec_13, - res: ResRec_13 + req: ReqRec_12, + res: ResRec_12 }, "hero/Reset": { req: ReqReset_2, @@ -1344,8 +1339,8 @@ export interface ServiceType { res: ResOpen_51 }, "shootGame/Rec": { - req: ReqRec_14, - res: ResRec_14 + req: ReqRec_13, + res: ResRec_13 }, "shop/Buy": { req: ReqBuy_6, @@ -1400,8 +1395,8 @@ export interface ServiceType { res: ResOpenFort }, "slzd/Rec": { - req: ReqRec_15, - res: ResRec_15 + req: ReqRec_14, + res: ResRec_14 }, "slzd/Refresh": { req: ReqRefresh_7, @@ -2019,81 +2014,76 @@ export const serviceProto: ServiceProto = { }, { "id": 74, - "name": "event/shiwuleichong/Rec", - "type": "api" - }, - { - "id": 75, "name": "event/shouchong/Open", "type": "api" }, { - "id": 76, + "id": 75, "name": "event/shouchong/Receive", "type": "api" }, { - "id": 77, + "id": 76, "name": "event/xianshizhaomu/Buy", "type": "api" }, { - "id": 78, + "id": 77, "name": "event/xianshizhaomu/Duihuan", "type": "api" }, { - "id": 79, + "id": 78, "name": "event/xianshizhaomu/Lottery", "type": "api" }, { - "id": 80, + "id": 79, "name": "event/xianshizhaomu/Open", "type": "api" }, { - "id": 81, + "id": 80, "name": "event/xianshizhaomu/Rec", "type": "api" }, { - "id": 82, + "id": 81, "name": "event/xinshoulibao/Open", "type": "api" }, { - "id": 83, + "id": 82, "name": "event/yangchengmubiao/Buy", "type": "api" }, { - "id": 84, + "id": 83, "name": "event/yangchengmubiao/Open", "type": "api" }, { - "id": 85, + "id": 84, "name": "event/yangchengmubiao/Rec", "type": "api" }, { - "id": 86, + "id": 85, "name": "event/yibaichou/Open", "type": "api" }, { - "id": 87, + "id": 86, "name": "event/yibaichou/Rec", "type": "api" }, { - "id": 88, + "id": 87, "name": "event/yibaichou/RecAll", "type": "api" }, { - "id": 89, + "id": 88, "name": "event/yuedujijin/Open", "type": "api", "conf": { @@ -2101,157 +2091,157 @@ export const serviceProto: ServiceProto = { } }, { - "id": 90, + "id": 89, "name": "event/yuedujijin/Rec", "type": "api" }, { - "id": 91, + "id": 90, "name": "event/zhanling/BuyLv", "type": "api" }, { - "id": 92, + "id": 91, "name": "event/zhanling/Open", "type": "api" }, { - "id": 93, + "id": 92, "name": "event/zhanling/RecPrize", "type": "api" }, { - "id": 94, + "id": 93, "name": "event/zhanling/RecTask", "type": "api" }, { - "id": 95, + "id": 94, "name": "event/zhoulibao/Open", "type": "api" }, { - "id": 96, + "id": 95, "name": "event/zhoumolibao/Open", "type": "api" }, { - "id": 97, + "id": 96, "name": "event/zhoumolibao/Receive", "type": "api" }, { - "id": 98, + "id": 97, "name": "event/zixuanlibao/Buy", "type": "api" }, { - "id": 99, + "id": 98, "name": "event/zixuanlibao/Open", "type": "api" }, { - "id": 100, + "id": 99, "name": "eventlist/hdGetList", "type": "api" }, { - "id": 101, + "id": 100, "name": "friend/Apply", "type": "api" }, { - "id": 102, + "id": 101, "name": "friend/Del", "type": "api" }, { - "id": 103, + "id": 102, "name": "friend/Gift", "type": "api" }, { - "id": 104, + "id": 103, "name": "friend/List", "type": "api" }, { - "id": 105, + "id": 104, "name": "friend/Open", "type": "api" }, { - "id": 106, + "id": 105, "name": "friend/Respond", "type": "api" }, { - "id": 107, + "id": 106, "name": "friend/RmBlackList", "type": "api" }, { - "id": 108, + "id": 107, "name": "friend/Search", "type": "api" }, { - "id": 109, + "id": 108, "name": "ganbutexun/Challenge", "type": "api" }, { - "id": 110, + "id": 109, "name": "ganbutexun/Open", "type": "api" }, { - "id": 111, + "id": 110, "name": "ganhai/Fast", "type": "api" }, { - "id": 112, + "id": 111, "name": "ganhai/Fight", "type": "api" }, { - "id": 113, + "id": 112, "name": "ganhai/Log", "type": "api" }, { - "id": 114, + "id": 113, "name": "ganhai/Open", "type": "api" }, { - "id": 115, + "id": 114, "name": "ganhai/Refresh", "type": "api" }, { - "id": 116, + "id": 115, "name": "ganhai/RefreshShip", "type": "api" }, { - "id": 117, + "id": 116, "name": "ganhai/Select", "type": "api" }, { - "id": 118, + "id": 117, "name": "gmapi/Gift", "type": "api" }, { - "id": 119, + "id": 118, "name": "gmapi/Post", "type": "api" }, { - "id": 120, + "id": 119, "name": "gonghui/Apply", "type": "api", "conf": { @@ -2261,7 +2251,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 121, + "id": 120, "name": "gonghui/ApplyAll", "type": "api", "conf": { @@ -2271,7 +2261,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 122, + "id": 121, "name": "gonghui/ApplyList", "type": "api", "conf": { @@ -2281,7 +2271,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 123, + "id": 122, "name": "gonghui/Change", "type": "api", "conf": { @@ -2291,12 +2281,12 @@ export const serviceProto: ServiceProto = { } }, { - "id": 124, + "id": 123, "name": "gonghui/Create", "type": "api" }, { - "id": 125, + "id": 124, "name": "gonghui/Dissolve", "type": "api", "conf": { @@ -2306,7 +2296,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 126, + "id": 125, "name": "gonghui/Exit", "type": "api", "conf": { @@ -2316,12 +2306,12 @@ export const serviceProto: ServiceProto = { } }, { - "id": 127, + "id": 126, "name": "gonghui/FbBuyNum", "type": "api" }, { - "id": 128, + "id": 127, "name": "gonghui/FbFight", "type": "api", "conf": { @@ -2331,7 +2321,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 129, + "id": 128, "name": "gonghui/FbOpen", "type": "api", "conf": { @@ -2341,17 +2331,17 @@ export const serviceProto: ServiceProto = { } }, { - "id": 130, + "id": 129, "name": "gonghui/GetList", "type": "api" }, { - "id": 131, + "id": 130, "name": "gonghui/Join", "type": "api" }, { - "id": 132, + "id": 131, "name": "gonghui/Jx", "type": "api", "conf": { @@ -2361,7 +2351,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 133, + "id": 132, "name": "gonghui/JxOpen", "type": "api", "conf": { @@ -2371,7 +2361,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 134, + "id": 133, "name": "gonghui/List", "type": "api", "conf": { @@ -2381,7 +2371,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 135, + "id": 134, "name": "gonghui/Manage", "type": "api", "conf": { @@ -2391,7 +2381,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 136, + "id": 135, "name": "gonghui/Open", "type": "api", "conf": { @@ -2401,7 +2391,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 137, + "id": 136, "name": "gonghui/TanHe", "type": "api", "conf": { @@ -2411,7 +2401,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 138, + "id": 137, "name": "gonghui/TaskOpen", "type": "api", "conf": { @@ -2421,7 +2411,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 139, + "id": 138, "name": "gonghui/TaskReceive", "type": "api", "conf": { @@ -2431,7 +2421,7 @@ export const serviceProto: ServiceProto = { } }, { - "id": 140, + "id": 139, "name": "gonghui/UpWz", "type": "api", "conf": { @@ -2441,137 +2431,137 @@ export const serviceProto: ServiceProto = { } }, { - "id": 141, + "id": 140, "name": "gonghuibaozang/Lottery", "type": "api" }, { - "id": 142, + "id": 141, "name": "gonghuibaozang/Open", "type": "api" }, { - "id": 143, + "id": 142, "name": "gonglukuangbiao/Buy", "type": "api" }, { - "id": 144, + "id": 143, "name": "gonglukuangbiao/Fight", "type": "api" }, { - "id": 145, + "id": 144, "name": "gonglukuangbiao/Open", "type": "api" }, { - "id": 146, + "id": 145, "name": "gonglukuangbiao/Refresh", "type": "api" }, { - "id": 147, + "id": 146, "name": "gongyu/mingdao/Active", "type": "api" }, { - "id": 148, + "id": 147, "name": "gongyu/mingdao/Open", "type": "api" }, { - "id": 149, + "id": 148, "name": "gongyu/mingdao/RecPrize", "type": "api" }, { - "id": 150, + "id": 149, "name": "gongyu/mingdao/Repair", "type": "api" }, { - "id": 151, + "id": 150, "name": "gongyu/xunlianjihua/Reset", "type": "api" }, { - "id": 152, + "id": 151, "name": "gongyu/xunlianjihua/UpSkill", "type": "api" }, { - "id": 153, + "id": 152, "name": "gongyu/zuozhanjihua/SetSkill", "type": "api" }, { - "id": 154, + "id": 153, "name": "hbzb/jfs/BuyNum", "type": "api" }, { - "id": 155, + "id": 154, "name": "hbzb/jfs/Fight", "type": "api" }, { - "id": 156, + "id": 155, "name": "hbzb/jfs/GetLog", "type": "api" }, { - "id": 157, + "id": 156, "name": "hbzb/jfs/Open", "type": "api" }, { - "id": 158, + "id": 157, "name": "hbzb/jfs/Rec", "type": "api" }, { - "id": 159, + "id": 158, "name": "hbzb/jfs/Refresh", "type": "api" }, { - "id": 160, + "id": 159, "name": "hbzb/GetStatus", "type": "api" }, { - "id": 161, + "id": 160, "name": "hbzb/zbs/BuyNum", "type": "api" }, { - "id": 162, + "id": 161, "name": "hbzb/zbs/Fight", "type": "api" }, { - "id": 163, + "id": 162, "name": "hbzb/zbs/GetLog", "type": "api" }, { - "id": 164, + "id": 163, "name": "hbzb/zbs/Open", "type": "api" }, { - "id": 165, + "id": 164, "name": "hbzb/zbs/Refresh", "type": "api" }, { - "id": 166, + "id": 165, "name": "hero/Awake", "type": "api" }, { - "id": 167, + "id": 166, "name": "hero/ChangePos", "type": "api", "conf": { @@ -2579,17 +2569,17 @@ export const serviceProto: ServiceProto = { } }, { - "id": 168, + "id": 167, "name": "hero/GetList", "type": "api" }, { - "id": 169, + "id": 168, "name": "hero/JinJie", "type": "api" }, { - "id": 170, + "id": 169, "name": "hero/LvUp", "type": "api", "conf": { @@ -2597,32 +2587,32 @@ export const serviceProto: ServiceProto = { } }, { - "id": 171, + "id": 170, "name": "hero/Potency", "type": "api" }, { - "id": 172, + "id": 171, "name": "hero/Rec", "type": "api" }, { - "id": 173, + "id": 172, "name": "hero/Reset", "type": "api" }, { - "id": 174, + "id": 173, "name": "hero/Talent", "type": "api" }, { - "id": 175, + "id": 174, "name": "hero/WeaponUp", "type": "api" }, { - "id": 176, + "id": 175, "name": "hongdian/Get", "type": "api", "conf": { @@ -2630,117 +2620,117 @@ export const serviceProto: ServiceProto = { } }, { - "id": 177, + "id": 176, "name": "item/GetList", "type": "api" }, { - "id": 178, + "id": 177, "name": "item/Use", "type": "api" }, { - "id": 179, + "id": 178, "name": "jiaotang/Lottery", "type": "api" }, { - "id": 180, + "id": 179, "name": "jiaotang/Open", "type": "api" }, { - "id": 181, + "id": 180, "name": "jiuba/Lottery", "type": "api" }, { - "id": 182, + "id": 181, "name": "jiuba/Open", "type": "api" }, { - "id": 183, + "id": 182, "name": "jjc/BuyFightNum", "type": "api" }, { - "id": 184, + "id": 183, "name": "jjc/Fight", "type": "api" }, { - "id": 185, + "id": 184, "name": "jjc/FightLog", "type": "api" }, { - "id": 186, + "id": 185, "name": "jjc/Open", "type": "api" }, { - "id": 187, + "id": 186, "name": "jjc/Receive", "type": "api" }, { - "id": 188, + "id": 187, "name": "jjc/Refresh", "type": "api" }, { - "id": 189, + "id": 188, "name": "kaifujingsai/Open", "type": "api" }, { - "id": 190, + "id": 189, "name": "kaifujingsai/Receive", "type": "api" }, { - "id": 191, + "id": 190, "name": "kbzz/Apply", "type": "api" }, { - "id": 192, + "id": 191, "name": "kbzz/AutoApply", "type": "api" }, { - "id": 193, + "id": 192, "name": "kbzz/BuyNum", "type": "api" }, { - "id": 194, + "id": 193, "name": "kbzz/Fight", "type": "api" }, { - "id": 195, + "id": 194, "name": "kbzz/FightLog", "type": "api" }, { - "id": 196, + "id": 195, "name": "kbzz/GroupState", "type": "api" }, { - "id": 197, + "id": 196, "name": "kbzz/Open", "type": "api" }, { - "id": 198, + "id": 197, "name": "kbzz/RecPrize", "type": "api" }, { - "id": 199, + "id": 198, "name": "kbzz/Refresh", "type": "api", "conf": { @@ -2748,287 +2738,287 @@ export const serviceProto: ServiceProto = { } }, { - "id": 200, + "id": 199, "name": "kuangdong/AddPkNum", "type": "api" }, { - "id": 201, + "id": 200, "name": "kuangdong/GetPrize", "type": "api" }, { - "id": 202, + "id": 201, "name": "kuangdong/KdInfo", "type": "api" }, { - "id": 203, + "id": 202, "name": "kuangdong/Log", "type": "api" }, { - "id": 204, + "id": 203, "name": "kuangdong/Open", "type": "api" }, { - "id": 205, + "id": 204, "name": "kuangdong/YanShi", "type": "api" }, { - "id": 206, + "id": 205, "name": "kuangdong/ZhanLing", "type": "api" }, { - "id": 207, + "id": 206, "name": "lingzhulaixi/Open", "type": "api" }, { - "id": 208, + "id": 207, "name": "lingzhulaixi/PkBoss", "type": "api" }, { - "id": 209, + "id": 208, "name": "lingzhulaixi/PkRank", "type": "api" }, { - "id": 210, + "id": 209, "name": "lingzhulaixi/SaoDang", "type": "api" }, { - "id": 211, + "id": 210, "name": "meirishilian/Buy", "type": "api" }, { - "id": 212, + "id": 211, "name": "meirishilian/Fight", "type": "api" }, { - "id": 213, + "id": 212, "name": "meirishilian/Open", "type": "api" }, { - "id": 214, + "id": 213, "name": "msg_c2s/BindUid", "type": "msg" }, { - "id": 215, + "id": 214, "name": "msg_c2s/Pay", "type": "msg" }, { - "id": 216, + "id": 215, "name": "msg_c2s/Sync", "type": "msg" }, { - "id": 217, + "id": 216, "name": "msg_s2c/Chat", "type": "msg" }, { - "id": 218, + "id": 217, "name": "msg_s2c/ChatHelp", "type": "msg" }, { - "id": 219, + "id": 218, "name": "msg_s2c/Collection", "type": "msg" }, { - "id": 220, + "id": 219, "name": "msg_s2c/Email", "type": "msg" }, { - "id": 221, + "id": 220, "name": "msg_s2c/EmailDel", "type": "msg" }, { - "id": 222, + "id": 221, "name": "msg_s2c/EquipChange", "type": "msg" }, { - "id": 223, + "id": 222, "name": "msg_s2c/Friend", "type": "msg" }, { - "id": 224, + "id": 223, "name": "msg_s2c/GhChange", "type": "msg" }, { - "id": 225, + "id": 224, "name": "msg_s2c/GongHuiBaoZang", "type": "msg" }, { - "id": 226, + "id": 225, "name": "msg_s2c/HeroChange", "type": "msg" }, { - "id": 227, + "id": 226, "name": "msg_s2c/HongDianChange", "type": "msg" }, { - "id": 228, + "id": 227, "name": "msg_s2c/ItemChange", "type": "msg" }, { - "id": 229, + "id": 228, "name": "msg_s2c/LoginQueue", "type": "msg" }, { - "id": 230, + "id": 229, "name": "msg_s2c/LshdChange", "type": "msg" }, { - "id": 231, + "id": 230, "name": "msg_s2c/NewDay", "type": "msg" }, { - "id": 232, + "id": 231, "name": "msg_s2c/OtherLogin", "type": "msg" }, { - "id": 233, + "id": 232, "name": "msg_s2c/PayChange", "type": "msg" }, { - "id": 234, + "id": 233, "name": "msg_s2c/PayResult", "type": "msg" }, { - "id": 235, + "id": 234, "name": "msg_s2c/PeijianChange", "type": "msg" }, { - "id": 236, + "id": 235, "name": "msg_s2c/PlayerChange", "type": "msg" }, { - "id": 237, + "id": 236, "name": "msg_s2c/Private", "type": "msg" }, { - "id": 238, + "id": 237, "name": "msg_s2c/PushGiftChange", "type": "msg" }, { - "id": 239, + "id": 238, "name": "msg_s2c/SendGift", "type": "msg" }, { - "id": 240, + "id": 239, "name": "msg_s2c/ShiwuChange", "type": "msg" }, { - "id": 241, + "id": 240, "name": "msg_s2c/TaskChange", "type": "msg" }, { - "id": 242, + "id": 241, "name": "msg_s2c/Xianshilibao", "type": "msg" }, { - "id": 243, + "id": 242, "name": "pata/Fight", "type": "api" }, { - "id": 244, + "id": 243, "name": "pata/GetPrize", "type": "api" }, { - "id": 245, + "id": 244, "name": "pata/Open", "type": "api" }, { - "id": 246, + "id": 245, "name": "pata/SaoDang", "type": "api" }, { - "id": 247, + "id": 246, "name": "pay/GetList", "type": "api" }, { - "id": 248, + "id": 247, "name": "peijian/GetList", "type": "api" }, { - "id": 249, + "id": 248, "name": "peijian/JingLian", "type": "api" }, { - "id": 250, + "id": 249, "name": "peijian/JinJie", "type": "api" }, { - "id": 251, + "id": 250, "name": "peijian/LvUp", "type": "api" }, { - "id": 252, + "id": 251, "name": "peijian/OneKeyLvUp", "type": "api" }, { - "id": 253, + "id": 252, "name": "peijian/OneKeyWear", "type": "api" }, { - "id": 254, + "id": 253, "name": "peijian/Reset", "type": "api" }, { - "id": 255, + "id": 254, "name": "peijian/Rm", "type": "api" }, { - "id": 256, + "id": 255, "name": "peijian/TakeOff", "type": "api", "conf": { @@ -3036,32 +3026,32 @@ export const serviceProto: ServiceProto = { } }, { - "id": 257, + "id": 256, "name": "peijian/UnLock", "type": "api" }, { - "id": 258, + "id": 257, "name": "peijian/Wear", "type": "api" }, { - "id": 259, + "id": 258, "name": "peijiancangku/Deal", "type": "api" }, { - "id": 260, + "id": 259, "name": "peijiancangku/Jump", "type": "api" }, { - "id": 261, + "id": 260, "name": "peijiancangku/Open", "type": "api" }, { - "id": 262, + "id": 261, "name": "Bingo", "type": "api", "conf": { @@ -3069,142 +3059,142 @@ export const serviceProto: ServiceProto = { } }, { - "id": 263, + "id": 262, "name": "FightTest", "type": "api" }, { - "id": 264, + "id": 263, "name": "SyncBtn", "type": "api" }, { - "id": 265, + "id": 264, "name": "Test", "type": "api" }, { - "id": 266, + "id": 265, "name": "pushgift/Open", "type": "api" }, { - "id": 267, + "id": 266, "name": "qjzzd/Fight", "type": "api" }, { - "id": 268, + "id": 267, "name": "qjzzd/Open", "type": "api" }, { - "id": 269, + "id": 268, "name": "rank/Open", "type": "api" }, { - "id": 270, + "id": 269, "name": "shiwu/Concise", "type": "api" }, { - "id": 271, + "id": 270, "name": "shiwu/Extract", "type": "api" }, { - "id": 272, + "id": 271, "name": "shiwu/GetList", "type": "api" }, { - "id": 273, + "id": 272, "name": "shiwu/LvUp", "type": "api" }, { - "id": 274, + "id": 273, "name": "shiwu/Recast", "type": "api" }, { - "id": 275, + "id": 274, "name": "shiwu/TakeOff", "type": "api" }, { - "id": 276, + "id": 275, "name": "shiwu/Wear", "type": "api" }, { - "id": 277, + "id": 276, "name": "shootGame/Open", "type": "api" }, { - "id": 278, + "id": 277, "name": "shootGame/Rec", "type": "api" }, { - "id": 279, + "id": 278, "name": "shop/Buy", "type": "api" }, { - "id": 280, + "id": 279, "name": "shop/Open", "type": "api" }, { - "id": 281, + "id": 280, "name": "shop/Refresh", "type": "api" }, { - "id": 282, + "id": 281, "name": "sign/GetBoxPrize", "type": "api" }, { - "id": 283, + "id": 282, "name": "sign/GetPrize", "type": "api" }, { - "id": 284, + "id": 283, "name": "sign/Open", "type": "api" }, { - "id": 285, + "id": 284, "name": "slzd/Aim", "type": "api" }, { - "id": 286, + "id": 285, "name": "slzd/BuyNum", "type": "api" }, { - "id": 287, + "id": 286, "name": "slzd/Fight", "type": "api" }, { - "id": 288, + "id": 287, "name": "slzd/FightLog", "type": "api" }, { - "id": 289, + "id": 288, "name": "slzd/MyRank", "type": "api" }, { - "id": 290, + "id": 289, "name": "slzd/Open", "type": "api", "conf": { @@ -3214,77 +3204,77 @@ export const serviceProto: ServiceProto = { } }, { - "id": 291, + "id": 290, "name": "slzd/OpenFort", "type": "api" }, { - "id": 292, + "id": 291, "name": "slzd/Rec", "type": "api" }, { - "id": 293, + "id": 292, "name": "slzd/Refresh", "type": "api" }, { - "id": 294, + "id": 293, "name": "slzd/Slot", "type": "api" }, { - "id": 295, + "id": 294, "name": "tanxian/Event", "type": "api" }, { - "id": 296, + "id": 295, "name": "tanxian/FastGuaJi", "type": "api" }, { - "id": 297, + "id": 296, "name": "tanxian/Fight", "type": "api" }, { - "id": 298, + "id": 297, "name": "tanxian/GuaJi", "type": "api" }, { - "id": 299, + "id": 298, "name": "tanxian/Open", "type": "api" }, { - "id": 300, + "id": 299, "name": "tanxian/Receive", "type": "api" }, { - "id": 301, + "id": 300, "name": "task/AllFinsh", "type": "api" }, { - "id": 302, + "id": 301, "name": "task/Finsh", "type": "api" }, { - "id": 303, + "id": 302, "name": "task/Open", "type": "api" }, { - "id": 304, + "id": 303, "name": "user/CDKEY", "type": "api" }, { - "id": 305, + "id": 304, "name": "user/ChangeInfo", "type": "api", "conf": { @@ -3292,197 +3282,197 @@ export const serviceProto: ServiceProto = { } }, { - "id": 306, + "id": 305, "name": "user/ChangeName", "type": "api" }, { - "id": 307, + "id": 306, "name": "user/Fight", "type": "api" }, { - "id": 308, + "id": 307, "name": "user/GetInfo", "type": "api" }, { - "id": 309, + "id": 308, "name": "user/InfoOpen", "type": "api" }, { - "id": 310, + "id": 309, "name": "user/Login", "type": "api" }, { - "id": 311, + "id": 310, "name": "user/Ping", "type": "api" }, { - "id": 312, + "id": 311, "name": "user/Renown", "type": "api" }, { - "id": 313, + "id": 312, "name": "user/RenownBuy", "type": "api" }, { - "id": 314, + "id": 313, "name": "user/RenownGetPrize", "type": "api" }, { - "id": 315, + "id": 314, "name": "user/RenownOpen", "type": "api" }, { - "id": 316, + "id": 315, "name": "user/Tujian", "type": "api" }, { - "id": 317, + "id": 316, "name": "weixiuchang/Decompose", "type": "api" }, { - "id": 318, + "id": 317, "name": "weixiuchang/Exchange", "type": "api" }, { - "id": 319, + "id": 318, "name": "weixiuchang/Open", "type": "api" }, { - "id": 320, + "id": 319, "name": "weixiuchang/UpLv", "type": "api" }, { - "id": 321, + "id": 320, "name": "weixiuchang/UpStar", "type": "api" }, { - "id": 322, + "id": 321, "name": "wzry/AutoBaoMing", "type": "api" }, { - "id": 323, + "id": 322, "name": "wzry/BaoMing", "type": "api" }, { - "id": 324, + "id": 323, "name": "wzry/catFightLog", "type": "api" }, { - "id": 325, + "id": 324, "name": "wzry/CatGroup", "type": "api" }, { - "id": 326, + "id": 325, "name": "wzry/DldFight", "type": "api" }, { - "id": 327, + "id": 326, "name": "wzry/DldRefre", "type": "api" }, { - "id": 328, + "id": 327, "name": "wzry/JingCai", "type": "api" }, { - "id": 329, + "id": 328, "name": "wzry/JingCaiOpen", "type": "api" }, { - "id": 330, + "id": 329, "name": "wzry/Open", "type": "api" }, { - "id": 331, + "id": 330, "name": "wzry/UpdateFight", "type": "api" }, { - "id": 332, + "id": 331, "name": "wzry/Wzzd", "type": "api" }, { - "id": 333, + "id": 332, "name": "wzry/ZuanShiOpen", "type": "api" }, { - "id": 334, + "id": 333, "name": "xstask/AllGet", "type": "api" }, { - "id": 335, + "id": 334, "name": "xstask/Get", "type": "api" }, { - "id": 336, + "id": 335, "name": "xstask/LvUp", "type": "api" }, { - "id": 337, + "id": 336, "name": "xstask/OnekeyReceive", "type": "api" }, { - "id": 338, + "id": 337, "name": "xstask/Open", "type": "api" }, { - "id": 339, + "id": 338, "name": "xstask/Receive", "type": "api" }, { - "id": 340, + "id": 339, "name": "xstask/Refresh", "type": "api" }, { - "id": 341, + "id": 340, "name": "yongbingzhuzhan/Handle", "type": "api" }, { - "id": 342, + "id": 341, "name": "zhanqianbushu/ChangePos", "type": "api" }, { - "id": 343, + "id": 342, "name": "zhanqianbushu/Select", "type": "api" }, { - "id": 344, + "id": 343, "name": "zhanqianbushu/Up", "type": "api" } @@ -10264,60 +10254,18 @@ export const serviceProto: ServiceProto = { "properties": [ { "id": 0, - "name": "index", + "name": "day", "type": { "type": "Number" } }, { "id": 1, - "name": "sTime", - "type": { - "type": "Number" - } - }, - { - "id": 2, - "name": "recIndex", + "name": "payIds", "type": { "type": "Array", "elementType": { - "type": "Number" - } - } - }, - { - "id": 3, - "name": "payDay", - "type": { - "type": "Number" - } - } - ] - }, - "event/shiwuleichong/PtlRec/ReqRec": { - "type": "Interface", - "properties": [ - { - "id": 0, - "name": "index", - "type": { - "type": "Number" - } - } - ] - }, - "event/shiwuleichong/PtlRec/ResRec": { - "type": "Interface", - "properties": [ - { - "id": 0, - "name": "prize", - "type": { - "type": "Array", - "elementType": { - "type": "Reference", - "target": "type/prizeType" + "type": "String" } } }