Merge branch 'release' into bugfix

This commit is contained in:
dy 2023-12-19 18:01:22 +08:00
commit 5c6e403e19
66 changed files with 5614 additions and 1471 deletions

12
oneKeyStartPm2.sh Normal file
View File

@ -0,0 +1,12 @@
git fetch origin dev && git reset --hard origin/dev && git pull
npm run build_linux
cp src/config.json dist/
pm2 del heijiao_msg_s0
cd dist && pm2 start js_pm2.config.js
pm2 save

View File

@ -3,6 +3,7 @@ import {EventFun} from '../public/event/event';
import {PayFun} from '../public/pay'; import {PayFun} from '../public/pay';
import {ReqSyncBtn, ResSyncBtn, syncBtnKeys} from "../shared/protocols/PtlSyncBtn"; import {ReqSyncBtn, ResSyncBtn, syncBtnKeys} from "../shared/protocols/PtlSyncBtn";
import {PublicShared} from '../shared/public/public'; import {PublicShared} from '../shared/public/public';
import {HuoDongFun} from "../public/huodongfun";
const defaultKeys: syncBtnKeys[] = [ const defaultKeys: syncBtnKeys[] = [
'huobanzhaomu', 'yibaichou', 'shouchong', 'huobanzhaomu', 'yibaichou', 'shouchong',
@ -10,7 +11,8 @@ const defaultKeys: syncBtnKeys[] = [
'zhanling', 'zhanling',
'xianshilibao', 'xianshilibao',
'xianshizhaomu', 'xianshizhaomu',
'G123Gift' 'G123Gift',
'christmas',
// 'kaifukuanghuan', // 'kaifukuanghuan',
// 'qiridenglu', // 'qiridenglu',
@ -36,6 +38,17 @@ export default async function (call: ApiCall<ReqSyncBtn, ResSyncBtn>) {
change[key] = data[key]; change[key] = data[key];
} }
break; break;
case 'christmas':
//领完消失
if (!data[key]) {
let _hdList = await HuoDongFun.gethdList(call, 8)
if (_hdList) {
// 无此活动
data[key] = {active: true};
change[key] = data[key];
}
}
break;
case 'dayjijin': case 'dayjijin':
case 'dengjijijin': case 'dengjijijin':
case 'guanqiajijin': case 'guanqiajijin':

View File

@ -1,7 +1,35 @@
import { ApiCall } from "tsrpc"; import { ApiCall } from "tsrpc";
import { ReqGame, ResGame } from "../../../shared/protocols/event/christmas/PtlGame"; import { ReqGame, ResGame } from "../../../shared/protocols/event/christmas/PtlGame";
import { HongDianChange } from "../../hongdian/fun";
import { Christmasfun } from "./fun";
import {PlayerFun} from "../../../public/player";
export default async function (call: ApiCall<ReqGame, ResGame>) { export default async function (call: ApiCall<ReqGame, ResGame>) {
// TODO let initCon = await Christmasfun.getCon(call)
call.error('API Not Implemented'); let need = initCon[call.req.hdid].data.gameneed;
let freenum = initCon[call.req.hdid].data.gamefree
let addval = initCon[call.req.hdid].data.game[call.req.index];
let _mydata = await Christmasfun.getMyData(call, call.req.hdid)
// 判断是否有免费配置
if (_mydata.gamenum >= freenum) {
// 判断消耗是否满足
await PlayerFun.checkNeedIsMeet(call, need);
// 扣除消耗
await PlayerFun.cutNeed(call, need);
}
let _setData = {}
_mydata["val"] += addval
_mydata["gamenum"] += 1
_setData["val"] = _mydata.val
_setData["gamenum"] = _mydata["gamenum"]
await Christmasfun.setMyData(call.uid, call.req.hdid, { $set: _setData})
// 监听任务
G.emit("Class_task_154", 'Class_task_154', call, 1, 0);
let changedata = { mydata: _mydata}
// 推送红点
HongDianChange.sendChangeKey(call.uid, ['huodonghd']);
call.succ(changedata);
} }

View File

@ -1,7 +1,47 @@
import { ApiCall } from "tsrpc"; import { ApiCall } from "tsrpc";
import { ReqLiBao, ResLiBao } from "../../../shared/protocols/event/christmas/PtlLiBao"; import { ReqLiBao, ResLiBao } from "../../../shared/protocols/event/christmas/PtlLiBao";
import {Christmasfun} from "./fun";
import {PlayerFun} from "../../../public/player";
import {HongDianChange} from "../../hongdian/fun";
export default async function (call: ApiCall<ReqLiBao, ResLiBao>) { export default async function (call: ApiCall<ReqLiBao, ResLiBao>) {
// TODO let initCon = await Christmasfun.getCon(call)
call.error('API Not Implemented'); let lbid = call.req.lbid;
let _con = initCon[call.req.hdid].data.libao[call.req.lbid];
if (!_con) {
// 礼包id 不存在
return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 })
}
if (_con.payid) {
// 判断是否能购买
return call.error('', { code: -2, message: globalThis.lng.yangchengmubiao_2 })
}
let _mydata = await Christmasfun.getMyData(call, call.req.hdid)
let _buyNum = _mydata.libao[lbid] || 0
if (_buyNum >= _con.buynum) {
// 判断是否能购买
return call.error('', { code: -3, message: globalThis.lng.yangchengmubiao_2 })
}
let _select = _mydata.select[lbid] || {}
if (Object.keys(_select).length < _con.dlz.length) {
// 判断是否选择奖励了
return call.error('', { code: -3, message: globalThis.lng.yangchengmubiao_2 })
}
let _prize: atn[] = _con.basep
for (let key in _select) {
_prize.push(_con.dlz[parseInt(key)][_select[key]])
}
let _setData = {}
_mydata.libao[lbid] = _buyNum + 1
_setData["libao"] = _mydata.libao
await Christmasfun.setMyData(call.uid, call.req.hdid, { $set: _setData })
await PlayerFun.sendPrize(call, _prize);
let changedata = { mydata: _mydata, prize: _prize}
// 推送红点
HongDianChange.sendChangeKey(call.uid, ['huodonghd']);
call.succ(changedata);
} }

View File

@ -1,7 +1,17 @@
import { ApiCall } from "tsrpc"; import { ApiCall } from "tsrpc";
import { ReqOpen, ResOpen } from "../../../shared/protocols/event/christmas/PtlOpen"; import { HuoDongFun } from "../../../public/huodongfun";
import { ReqOpen, ResOpen } from "../../../shared/protocols/event/yangchengmubiao/PtlOpen";
import { Christmasfun } from "./fun";
export default async function (call: ApiCall<ReqOpen, ResOpen>) { export default async function (call: ApiCall<ReqOpen, ResOpen>) {
// TODO let _hdinfo = await HuoDongFun.getHdidInfo(call, call.req.hdid)
call.error('API Not Implemented'); if (!_hdinfo || Object.keys(_hdinfo).length <= 0) {
// 无此活动
return call.error('', { code: -1, message: globalThis.lng.huodong_open_1 })
}
let _mydata = await Christmasfun.getMyData(call, call.req.hdid)
let changedata = { mydata: _mydata, hdinfo: _hdinfo }
call.succ(changedata);
} }

View File

@ -1,7 +1,38 @@
import { ApiCall } from "tsrpc"; import { ApiCall } from "tsrpc";
import { ReqQianDao, ResQianDao } from "../../../shared/protocols/event/christmas/PtlQianDao"; import { ReqQianDao, ResQianDao } from "../../../shared/protocols/event/christmas/PtlQianDao";
import {Christmasfun} from "./fun";
import {PublicShared} from "../../../shared/public/public";
import {PlayerFun} from "../../../public/player";
import {HongDianChange} from "../../hongdian/fun";
export default async function (call: ApiCall<ReqQianDao, ResQianDao>) { export default async function (call: ApiCall<ReqQianDao, ResQianDao>) {
// TODO let initCon = await Christmasfun.getCon(call)
call.error('API Not Implemented'); let _con = initCon[call.req.hdid].data.qiandao;
let _stime = initCon[call.req.hdid].stime
let _diff = PublicShared.getDiff(_stime)
let _mydata = await Christmasfun.getMyData(call, call.req.hdid)
// 循环判断是否有可以领取的
let _prize = []
for(let i = 0; i < _diff; i++) {
if (_mydata.qiandao.includes(i)) continue
_mydata.qiandao.push(i)
_prize = _prize.concat(_con[i])
}
if (!_prize){
// 没有奖励可以领取
return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 })
}
let _setData = {}
_setData["qiandao"] = _mydata.qiandao
await Christmasfun.setMyData(call.uid, call.req.hdid, { $set: _setData })
await PlayerFun.sendPrize(call, _prize);
let changedata = { mydata: _mydata, prize: _prize}
// 推送红点
HongDianChange.sendChangeKey(call.uid, ['huodonghd']);
call.succ(changedata);
} }

View File

@ -1,7 +1,39 @@
import { ApiCall } from "tsrpc"; import { ApiCall } from "tsrpc";
import { ReqSelect, ResSelect } from "../../../shared/protocols/event/christmas/PtlSelect"; import { ReqSelect, ResSelect } from "../../../shared/protocols/event/christmas/PtlSelect";
import {Christmasfun} from "./fun";
import {HongDianChange} from "../../hongdian/fun";
export default async function (call: ApiCall<ReqSelect, ResSelect>) { export default async function (call: ApiCall<ReqSelect, ResSelect>) {
// TODO let initCon = await Christmasfun.getCon(call)
call.error('API Not Implemented'); let index = call.req.index;
let pid = call.req.pid;
let lbid = call.req.lbid;
let _con = initCon[call.req.hdid].data.libao[lbid];
if (!_con) {
// 礼包id 不存在
return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 })
}
if (index >= _con.dlz.length){
// 礼包id 不存在
return call.error('', { code: -2, message: globalThis.lng.yangchengmubiao_2 })
}
if (index >= _con.dlz.length){
// 礼包id 不存在
return call.error('', { code: -3, message: globalThis.lng.yangchengmubiao_2 })
}
if (!_con.dlz[index][pid]){
// 礼包id 不存在
return call.error('', { code: -4, message: globalThis.lng.yangchengmubiao_2 })
}
let _mydata = await Christmasfun.getMyData(call, call.req.hdid)
let lb_select = _mydata.select[lbid] || {}
lb_select[index.toString()] = pid
_mydata.select[lbid] = lb_select
let _setData = {}
_setData["select"] = _mydata.select
await Christmasfun.setMyData(call.uid, call.req.hdid, { $set: _setData })
let changedata = { mydata: _mydata}
// 推送红点
HongDianChange.sendChangeKey(call.uid, ['huodonghd']);
call.succ(changedata);
} }

View File

@ -1,7 +1,37 @@
import { ApiCall } from "tsrpc"; import { ApiCall } from "tsrpc";
import { ReqTaskRec, ResTaskRec } from "../../../shared/protocols/event/christmas/PtlTaskRec"; 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<ReqTaskRec, ResTaskRec>) { export default async function (call: ApiCall<ReqTaskRec, ResTaskRec>) {
// TODO let initCon = await Christmasfun.getCon(call)
call.error('API Not Implemented'); 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 _setData = {}
_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);
} }

View File

@ -1,7 +1,48 @@
import { ApiCall } from "tsrpc"; import { ApiCall } from "tsrpc";
import { ReqZhanLingRec, ResZhanLingRec } from "../../../shared/protocols/event/christmas/PtlZhanLingRec"; import { ReqZhanLingRec, ResZhanLingRec } from "../../../shared/protocols/event/christmas/PtlZhanLingRec";
import {Christmasfun} from "./fun";
import {PlayerFun} from "../../../public/player";
import {HongDianChange} from "../../hongdian/fun";
export default async function (call: ApiCall<ReqZhanLingRec, ResZhanLingRec>) { export default async function (call: ApiCall<ReqZhanLingRec, ResZhanLingRec>) {
// TODO let initCon = await Christmasfun.getCon(call)
call.error('API Not Implemented'); let index = call.req.index;
let _con = initCon[call.req.hdid].data.zhanling[index];
if (!_con) {
// 礼包id 不存在
return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 })
}
let _mydata = await Christmasfun.getMyData(call, call.req.hdid)
if (_mydata.val < _con.val) {
return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 })
}
let _prize = []
if (!_mydata.pt.includes(index)){
// 如果普通奖励没有领取
_prize = _prize.concat(_con.pt)
_mydata.pt.push(index)
}
if (_mydata.pay && !_mydata.gj.includes(index)){
// 如果普通奖励没有领取
_prize = _prize.concat(_con.gj)
_mydata.gj.push(index)
}
if (!_prize) {
// 没有奖励可以领取
return call.error('', { code: -1, message: globalThis.lng.yangchengmubiao_2 })
}
let _setData = {}
_setData["gj"] = _mydata.gj
_setData["pt"] = _mydata.pt
await Christmasfun.setMyData(call.uid, call.req.hdid, { $set: _setData })
await PlayerFun.sendPrize(call, _prize);
let changedata = { mydata: _mydata, prize: _prize}
// 推送红点
HongDianChange.sendChangeKey(call.uid, ['huodonghd']);
call.succ(changedata);
} }

View File

@ -0,0 +1,200 @@
import { strict } from 'assert';
import {ApiCall, BaseConnection} from 'tsrpc';
import { ReqAddHuoDong } from '../../../monopoly/protocols/PtlAddHuoDong';
import { HuoDongFun } from '../../../public/huodongfun';
import { TaskFun } from '../../../public/task';
import { christmas } from '../../../shared/protocols/event/christmas/PtlOpen';
import { PublicShared } from '../../../shared/public/public';
import {player} from '../../../shared/protocols/user/type';
import {PlayerFun} from "../../../public/player";
export class Christmasfun {
/**配置 */
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
await this.setMyData(call.uid, hdid, { $set: { refresh: mydata.refresh, taskfinish: mydata.taskfinish, taskval: mydata.taskval, gamenum: mydata.gamenum} })
return mydata
}
static async payChristmas(payid, call: ApiCall) {
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 Christmasfun.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 Christmasfun.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} })
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
)
}
}
}
}

View File

@ -1,27 +1,38 @@
import { ApiCall } from "tsrpc"; import {ApiCall} from "tsrpc";
import { PlayerFun } from '../../../public/player'; import {PlayerFun} from '../../../public/player';
import { ReqRec, ResRec } from "../../../shared/protocols/event/huobanzhaomu/PtlRec"; import {ReqRec, ResRec} from "../../../shared/protocols/event/huobanzhaomu/PtlRec";
import { HongDianChange } from "../../hongdian/fun"; import {HongDianChange} from "../../hongdian/fun";
import {PayFun} from "../../../public/pay";
export default async function (call: ApiCall<ReqRec, ResRec>) { export default async function (call: ApiCall<ReqRec, ResRec>) {
let conf = G.gc.huobanzhaomu[call.req.index]; let conf = G.gc.huobanzhaomu[call.req.index];
if (!conf) return call.error('', { code: -1 }); if (!conf) return call.error('', {code: -1});
if (conf.gudKey && call.conn.gud[conf.gudKey] < conf.total) return call.error('', { code: -2 }); if (conf.gudKey && call.conn.gud[conf.gudKey] < conf.total) return call.error('', {code: -2});
let db = await G.mongodb.cEvent('huobanzhaomu').findOne({ uid: call.uid, type: 'huobanzhaomu' }); let db = await G.mongodb.cEvent('huobanzhaomu').findOne({uid: call.uid, type: 'huobanzhaomu'});
if (db?.rec.includes(call.req.index)) return call.error('', { code: -3 }); if (db?.rec.includes(call.req.index)) return call.error('', {code: -3});
if (!conf.gudKey && (db?.rec?.length || 0) < G.gc.huobanzhaomu.length - 1) return call.error('', { code: -4 });
if (conf.gudKey == "chaozhiyueka") {
let logs = await PayFun.getPayLog(call.uid, "chaozhiyueka");
if (!logs || logs.slice(-1)[0].eTime < G.time) {
return call.error('', {code: -4});
}
} else {
if (!conf.gudKey && (db?.rec?.length || 0) < G.gc.huobanzhaomu.length - 1) {
return call.error('', {code: -4});
}
}
await PlayerFun.sendPrize(call, conf.prize); await PlayerFun.sendPrize(call, conf.prize);
if (db?.rec?.length + 1 >= G.gc.huobanzhaomu.length) { if (db?.rec?.length + 1 >= G.gc.huobanzhaomu.length) {
G.mongodb.collection('syncBtns').updateOne({ uid: call.uid }, { $set: { 'huobanzhaomu.active': false } }, { upsert: true }); G.mongodb.collection('syncBtns').updateOne({uid: call.uid}, {$set: {'huobanzhaomu.active': false}}, {upsert: true});
} }
G.mongodb.cEvent('huobanzhaomu').updateOne( G.mongodb.cEvent('huobanzhaomu').updateOne(
{ uid: call.uid, type: 'huobanzhaomu' }, {uid: call.uid, type: 'huobanzhaomu'},
{ $push: { rec: call.req.index } }, {$push: {rec: call.req.index}},
{ upsert: true } {upsert: true}
); );
HongDianChange.sendChangeKey(call.uid, ['huobanzhaomuhd']) HongDianChange.sendChangeKey(call.uid, ['huobanzhaomuhd'])

View File

@ -1,41 +1,42 @@
import { UpdateFilter } from 'mongodb'; import {ApiCall} from "tsrpc";
import { ApiCall } from "tsrpc"; import {ReqOpen, ResOpen} from "../../../shared/protocols/event/shiwuleichong/PtlOpen";
import { CollectionEvent } from '../../../module/collection_event'; import {PayFun} from "../../../public/pay";
import { PayFun } from '../../../public/pay'; import {PublicShared} from "../../../shared/public/public";
import { ReqOpen, ResOpen } from "../../../shared/protocols/event/shiwuleichong/PtlOpen";
import { PublicShared } from '../../../shared/public/public';
export default async function (call: ApiCall<ReqOpen, ResOpen>) { export default async function (call: ApiCall<ReqOpen, ResOpen>) {
let db = await G.mongodb.cEvent('15leichong').findOne({ uid: call.uid, type: '15leichong' }); let payids = G.gc.shiwuleichong.tasks.map(
let update: UpdateFilter<CollectionEvent<'15leichong'>>; (i) => i.payid
let sTime = PublicShared.getToDayZeroTime(G.time); );
if (!db) { let day: number = 1;
update = { let _zt = PublicShared.getToDayZeroTime();
$set: { index: 0, sTime: sTime, recIndex: [] } let pays = await PayFun.getPayLogs(call.uid, payids);
}; for (; day <= G.gc.shiwuleichong.tasks.length; day++) {
let pay = pays[G.gc.shiwuleichong.tasks[day - 1].payid];
if (!pay || pay.length == 0) {
break
} else { } else {
if (db.sTime + G.gc.shiwuleichong.data[db.index].time < G.time) { // 如果是最后一天奖励
if (day >= G.gc.shiwuleichong.tasks.length) {
db.sTime = sTime; // 充值订单隔天了
db.index = G.gc.shiwuleichong.data[db.index + 1] == undefined ? db.index : db.index + 1; if (pay.slice(-1)[0].time < _zt) {
db.recIndex = []; // 重置所有订单
await PayFun.delPayLog(call.uid, ...payids.map(i => {
update = { return {payId: i, val: []}
$set: { index: db.index, sTime: db.sTime, recIndex: [] } }))
}; day = 1;
} else { pays = {};
sTime = db.sTime; }
break;
} else 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;
call.succ({ call.succ({
index: index, day: day,
sTime: sTime, payIds: Object.keys(pays).filter((i) => pays[i].length > 0)
recIndex: db?.recIndex || [],
payDay: await PayFun.getPayDaysBuyPayNum(call.uid, sTime, sTime + G.gc.shiwuleichong.data[index].time, G.gc.shiwuleichong.dayPayNeed)
}); });
} }

View File

@ -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<ReqRec, ResRec>) {
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
});
}

View File

@ -1,11 +1,14 @@
import { ApiCall } from "tsrpc"; import { ApiCall } from "tsrpc";
import { ReqOpen, ResOpen } from "../../../shared/protocols/event/shouchong/PtlOpen"; import { ReqOpen, ResOpen } from "../../../shared/protocols/event/shouchong/PtlOpen";
import {PayFun} from "../../../public/pay";
export default async function (call: ApiCall<ReqOpen, ResOpen>) { export default async function (call: ApiCall<ReqOpen, ResOpen>) {
let data = await G.mongodb.cEvent('shouchong').findOne({ uid: call.uid, type: 'shouchong' }); let data = await G.mongodb.cEvent('shouchongzhigou').findOne({uid: call.uid, type: 'shouchongzhigou'})
let payIds = R.compose(R.map(i=>i.payid),R.values())(G.gc.shouchong)
call.succ({ call.succ({
payNum: call.conn.gud.payExp / 10, receive: data?.receive || {},
receive: Object.fromEntries(Object.keys(G.gc.shouchong).map(k => [k, data?.receive?.[k] || []])) buyLog: await PayFun.getPayLogs(call.uid, payIds)
}); })
} }

View File

@ -1,28 +1,31 @@
import { ApiCall } from "tsrpc"; import {ApiCall} from "tsrpc";
import { PlayerFun } from '../../../public/player'; import {PlayerFun} from '../../../public/player';
import { ReqReceive, ResReceive } from "../../../shared/protocols/event/shouchong/PtlReceive"; import {ReqReceive, ResReceive} from "../../../shared/protocols/event/shouchong/PtlReceive";
import { PublicShared } from '../../../shared/public/public'; import {PublicShared} from '../../../shared/public/public';
import { HongDianChange } from "../../hongdian/fun"; import {HongDianChange} from "../../hongdian/fun";
import {PayFun} from "../../../public/pay";
export default async function (call: ApiCall<ReqReceive, ResReceive>) { export default async function (call: ApiCall<ReqReceive, ResReceive>) {
let conf = G.gc.shouchong[call.req.k]; let conf = G.gc.shouchong[call.req.k];
if (!conf) return call.error(globalThis.lng.pata_getprize_1); if (!conf) return call.error(globalThis.lng.pata_getprize_1);
let data = await G.mongodb.cEvent('shouchong').findOne({ uid: call.uid, type: 'shouchong' }); let payLog = await PayFun.getPayLog(call.uid, conf.payid)
if (!payLog) return call.errorCode(-1)
let data = await G.mongodb.cEvent('shouchongzhigou').findOne({ uid: call.uid, type: 'shouchongzhigou' });
let recArr = data?.receive?.[call.req.k] || []; let recArr = data?.receive?.[call.req.k] || [];
if (call.conn.gud.payExp < conf.paynum) return call.error(globalThis.lng.event_kfkh_9); // if (call.conn.gud.payExp < conf.paynum) return call.error(globalThis.lng.event_kfkh_9);
if (recArr.length >= conf.prize.length) return call.error(globalThis.lng.event_kfkh_3); if (recArr.length >= conf.prize.length) return call.error(globalThis.lng.event_kfkh_3);
if (recArr.slice(-1)[0] && PublicShared.getToDayZeroTime() < recArr.slice(-1)[0]) return call.error(globalThis.lng.event_kfkh_10); if (recArr.slice(-1)[0] && PublicShared.getToDayZeroTime() < recArr.slice(-1)[0]) return call.error(globalThis.lng.event_kfkh_10);
await PlayerFun.sendPrize(call, conf.prize[recArr.length]); await PlayerFun.sendPrize(call, conf.prize[recArr.length]);
await G.mongodb.cEvent('shouchong').updateOne( await G.mongodb.cEvent('shouchongzhigou').updateOne(
{ uid: call.uid, type: 'shouchong' }, { uid: call.uid, type: 'shouchongzhigou' },
{ $push: G.mongodb.createTreeObj({ key: 'receive', k: call.req.k, val: G.time }) }, { $push: G.mongodb.createTreeObj({ key: 'receive', k: call.req.k, val: G.time }) },
{ upsert: true } { upsert: true }
); );
@ -40,17 +43,16 @@ export default async function (call: ApiCall<ReqReceive, ResReceive>) {
} }
export async function getShouChongRedPoint(call: ApiCall) { export async function getShouChongRedPoint(call: ApiCall) {
let res = { show: false }; // let data = await G.mongodb.cEvent('shouchong').findOne({ uid: call.uid, type: 'shouchong' });
let data = await G.mongodb.cEvent('shouchong').findOne({ uid: call.uid, type: 'shouchong' }); //
// for (let [id, conf] of Object.entries(G.gc.shouchong)) {
// let rec = data?.receive?.[id] || [];
// if (call.conn.gud.payExp / 10 < conf.paynum || rec.length >= conf.prize.length) continue;
// if (rec.length == 0 || rec.slice(-1)[0] < PublicShared.getToDayZeroTime(G.time)) {
// res = { show: true };
// break;
// }
// }
for (let [id, conf] of Object.entries(G.gc.shouchong)) { return {show: false};
let rec = data?.receive?.[id] || [];
if (call.conn.gud.payExp / 10 < conf.paynum || rec.length >= conf.prize.length) continue;
if (rec.length == 0 || rec.slice(-1)[0] < PublicShared.getToDayZeroTime(G.time)) {
res = { show: true };
break;
}
}
return res;
} }

View File

@ -20,7 +20,7 @@ export default async function (call: ApiCall<ReqBuyLv, ResBuyLv>) {
let change: ResBuyLv['change'] = {}; let change: ResBuyLv['change'] = {};
change.lv = data.lv + lv; change.lv = data.lv + lv;
change.exp = G.gc.zhanling.lv[change.lv]; change.exp = data.exp + 1000;
G.mongodb.cEvent('zhanling').updateOne( G.mongodb.cEvent('zhanling').updateOne(
{ uid: call.uid, type: 'zhanling' }, { uid: call.uid, type: 'zhanling' },

View File

@ -11,10 +11,10 @@ import {WangZheRongYaofun} from "../../public/wzry";
import {XstaskFun} from "../../public/xstask"; import {XstaskFun} from "../../public/xstask";
import {ReqGet, ResGet, hongdianKey} from "../../shared/protocols/hongdian/PtlGet"; import {ReqGet, ResGet, hongdianKey} from "../../shared/protocols/hongdian/PtlGet";
import {PublicShared} from '../../shared/public/public'; import {PublicShared} from '../../shared/public/public';
import {getShouChongRedPoint} from '../event/shouchong/ApiReceive';
import {md_redPoint} from '../gongyu/mingdao/ApiOpen'; import {md_redPoint} from '../gongyu/mingdao/ApiOpen';
import {HongDianFun, HuoDongHongDianFun} from "./fun"; import {HongDianFun, HuoDongHongDianFun} from "./fun";
import {FunWeiXiuChang} from "../../public/weixiuchang"; import {FunWeiXiuChang} from "../../public/weixiuchang";
import {getShouChongRedPoint} from "../event/shouchong/ApiReceive";
const defaultKeys: hongdianKey[] = ['jiuba', 'jiaotang', 'shouchong', 'clslhd', 'dixiaqianzhuanghd', 'gonghuihd', 'hbzbhd', 'jjchd', 'taskhd', const defaultKeys: hongdianKey[] = ['jiuba', 'jiaotang', 'shouchong', 'clslhd', 'dixiaqianzhuanghd', 'gonghuihd', 'hbzbhd', 'jjchd', 'taskhd',
'xstaskhd', 'lingzhulaixihd', 'dxlthd', 'wzcjhd', 'slzdhd', 'qjzzdhd', 'kuangdonghd', 'qiandaohd', 'kaifukuanghuanhd', 'jijinhd', 'zhuishalinghd', 'xstaskhd', 'lingzhulaixihd', 'dxlthd', 'wzcjhd', 'slzdhd', 'qjzzdhd', 'kuangdonghd', 'qiandaohd', 'kaifukuanghuanhd', 'jijinhd', 'zhuishalinghd',

View File

@ -20,6 +20,7 @@ import {PlayerFun} from "../../public/player";
import kfjsFun from "../../public/kaifujingsai"; import kfjsFun from "../../public/kaifujingsai";
import {RankKfjs} from "../../public/rank/rank_kfjs"; import {RankKfjs} from "../../public/rank/rank_kfjs";
import {ShopFun} from "../../public/shop"; import {ShopFun} from "../../public/shop";
import {Christmasfun} from '../event/christmas/fun';
export class HongDianFun { export class HongDianFun {
/**黑榜争霸红点 */ /**黑榜争霸红点 */
@ -689,6 +690,68 @@ export class HuoDongHongDianFun {
return _res; return _res;
} }
/**圣诞节活动红点 */
static async christmasHongDian(call: ApiCall, hdCon: ReqAddHuoDong) {
let _res: hongdianVal = {
show: false,
};
let _hdCon = hdCon.data;
let stime = hdCon.stime
let _mydata = await Christmasfun.getMyData(call, hdCon.hdid);
let _tasks = hdCon.data.task; // 所有任务 taskid 为key
for (let indextask = 0; indextask < Object.keys(_tasks).length; indextask++) {
const elementtask = Object.keys(_tasks)[indextask];
let _tmp = _tasks[elementtask];
if (_tmp.pval <= (_mydata.taskval[elementtask] || 0) && !_mydata.taskfinsih.includes(elementtask)) {
// 任务完成且没有领取
_res.show = true;
return _res;
}
}
let libaos = _hdCon.libao
for (let indexlibao = 0; indexlibao < Object.keys(libaos).length; indexlibao++) {
const elementlibao = Object.keys(libaos)[indexlibao];
let _tmp = _tasks[elementlibao];
if (_tmp.payid) continue
let _buyNum = _mydata.libao[elementlibao] || 0
if (_buyNum < _tmp.buynum) {
_res.show = true;
return _res;
}
}
let _diff = PublicShared.getDiff(stime)
// 循环判断是否有可以领取的
for (let i = 0; i < _diff; i++) {
if (_mydata.qiandao.includes(i)) continue
_res.show = true;
return _res;
}
let need = _hdCon.gameneed;
// 判断消耗是否满足
let meet = await PlayerFun.checkNeedIsMeet(call, need, false);
if (meet.isOk == true) {
_res.show = true;
return _res;
}
let zhanling = _hdCon.zhanling
for (let indexzhanling = 0; indexzhanling < zhanling.length; indexzhanling++) {
if (!_mydata.pt.includes(indexzhanling)) {
_res.show = true;
return _res;
}
if (_mydata.pay && !_mydata.gj.includes(indexzhanling)) {
_res.show = true;
return _res;
}
}
return _res;
}
/**养成目标红点 */ /**养成目标红点 */
static async yangchengmubiaoHongDian(call: ApiCall, hdCon: ReqAddHuoDong) { static async yangchengmubiaoHongDian(call: ApiCall, hdCon: ReqAddHuoDong) {
let _res: hongdianVal = { let _res: hongdianVal = {
@ -814,7 +877,7 @@ export class HuoDongHongDianFun {
} }
}; };
_res.val.meirijingxuan = await this.heiShiHongDian(call) _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) _res.val.niudanji = await this.heiShiNiuDanJi(call)
Object.values(_res.val).forEach(x => _res.show = _res.show || x.show) Object.values(_res.val).forEach(x => _res.show = _res.show || x.show)
return _res return _res
@ -850,25 +913,25 @@ export class HuoDongHongDianFun {
} }
/**黑市 积天豪礼 */ /**黑市 积天豪礼 */
static async heiShiLCHongDian(call: ApiCall): Promise<hongdianVal> { // static async heiShiLCHongDian(call: ApiCall): Promise<hongdianVal> {
let _res: hongdianVal = { // let _res: hongdianVal = {
show: false // show: false
}; // };
let db = await G.mongodb.cEvent('15leichong').findOne({uid: call.uid, type: '15leichong'}); // let db = await G.mongodb.cEvent('15leichong').findOne({uid: call.uid, type: '15leichong'});
//
if (!db) return _res; // if (!db) return _res;
//
let _con = G.gc.shiwuleichong.data[db.index]; // 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); // 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++) { // for (let index = 0; index < _con.tasks.length; index++) {
const element = _con.tasks[index]; // const element = _con.tasks[index];
if (db.recIndex.includes(index)) continue; // if (db.recIndex.includes(index)) continue;
if (payDay < element.total) continue; // if (payDay < element.total) continue;
_res.show = true; // _res.show = true;
break; // break;
} // }
return _res; // return _res;
} // }
/**黑市 扭蛋机 */ /**黑市 扭蛋机 */
static async heiShiNiuDanJi(call: ApiCall): Promise<hongdianVal> { static async heiShiNiuDanJi(call: ApiCall): Promise<hongdianVal> {

View File

@ -1,7 +0,0 @@
import { ApiCall } from "tsrpc";
import { ReqOpen, ResOpen } from "../../shared/protocols/pushgift/PtlOpen";
export default async function (call: ApiCall<ReqOpen, ResOpen>) {
// TODO
call.error('API Not Implemented');
}

View File

@ -42,6 +42,12 @@ export default async function (call: ApiCall<ReqAllFinsh, ResAllFinsh>) {
// 设置数据 // 设置数据
await TaskFun.setTask(call.uid, { type: _type, taskid: { $in: _finishTaks } }, { finish: 1 }) await TaskFun.setTask(call.uid, { type: _type, taskid: { $in: _finishTaks } }, { finish: 1 })
let prize = await PlayerFun.sendPrize(call, _prize) let prize = await PlayerFun.sendPrize(call, _prize)
// 是否是每日任务奖励最终宝箱
if (_type == 4 && 25 in _finishTaks){
// 监听任务
G.emit("Class_task_155", 'Class_task_155', call, 1, 0);
}
let data = { let data = {
finishtask: _finishTaks, finishtask: _finishTaks,

View File

@ -44,6 +44,11 @@ export default async function (call: ApiCall<ReqFinsh, ResFinsh>) {
} }
// 设置数据 // 设置数据
await TaskFun.setTask(call.uid, {taskid: taskid}, {finish: 1}) await TaskFun.setTask(call.uid, {taskid: taskid}, {finish: 1})
// 是否是每日任务奖励最终宝箱
if (_task["type"] == 4 && 25 == taskid){
// 监听任务
G.emit("Class_task_155", 'Class_task_155', call, 1, 0);
}
let _prize = await PlayerFun.sendPrize(call, _con["prize"]) let _prize = await PlayerFun.sendPrize(call, _con["prize"])
_task["finish"] = 1 _task["finish"] = 1

View File

@ -1,15 +1,17 @@
import { ApiCall } from "tsrpc"; import {ApiCall} from "tsrpc";
import { PlayerFun } from '../../public/player'; import {PlayerFun} from '../../public/player';
import { XstaskFun } from '../../public/xstask'; import {XstaskFun} from '../../public/xstask';
import { ReqAllGet, ResAllGet } from "../../shared/protocols/xstask/PtlAllGet"; import {ReqAllGet, ResAllGet} from "../../shared/protocols/xstask/PtlAllGet";
import { HongDianChange } from "../hongdian/fun"; import {HongDianChange} from "../hongdian/fun";
import { PublicShared } from "../../shared/public/public"; import {PublicShared} from "../../shared/public/public";
import {TeQuanFun} from "../../public/tequan";
export default async function (call: ApiCall<ReqAllGet, ResAllGet>) { export default async function (call: ApiCall<ReqAllGet, ResAllGet>) {
const taskList = JSON.parse(JSON.stringify(await XstaskFun.getAllTask(call.uid))); const taskList = JSON.parse(JSON.stringify(await XstaskFun.getAllTask(call.uid)));
let taskInfo = await XstaskFun.getInfo(call.uid); let taskInfo = await XstaskFun.getInfo(call.uid);
let prizeArr:atn[] = [] let tequan = await TeQuanFun.getXsTaskNum(call);
for(let task of taskList) { let prizeArr: atn[] = []
for (let task of taskList) {
const taskConf = G.gc.xstask[task?.taskId]; const taskConf = G.gc.xstask[task?.taskId];
if (!task) continue; if (!task) continue;
if (task.receiveData == undefined) continue; if (task.receiveData == undefined) continue;
@ -23,10 +25,10 @@ export default async function (call: ApiCall<ReqAllGet, ResAllGet>) {
// } // }
continue continue
} }
let change: Parameters<typeof XstaskFun.changeInfo>[1] = { $inc: {} }; let change: Parameters<typeof XstaskFun.changeInfo>[1] = {$inc: {}};
change.$inc[`finishNum.${taskConf.colour}`] = 1; change.$inc[`finishNum.${taskConf.colour}`] = 1;
// 比对派遣时间如果小于当日0点则更新新任务否则该变领取状态为true // 比对派遣时间如果小于当日0点则更新新任务否则该变领取状态为true
if(task.receiveData.time < PublicShared.getToDayZeroTime()) { if (task.receiveData.time < PublicShared.getToDayZeroTime()) {
// 更新任务 // 更新任务
let newTask = XstaskFun.randomTasks(taskInfo?.lv, 1) let newTask = XstaskFun.randomTasks(taskInfo?.lv, 1)
XstaskFun.updateTask(call.uid, task._id, newTask[0].taskId) XstaskFun.updateTask(call.uid, task._id, newTask[0].taskId)
@ -38,6 +40,14 @@ export default async function (call: ApiCall<ReqAllGet, ResAllGet>) {
XstaskFun.changeInfo(call.uid, change); XstaskFun.changeInfo(call.uid, change);
await PlayerFun.sendPrize(call, taskConf.prize); await PlayerFun.sendPrize(call, taskConf.prize);
HongDianChange.sendChangeKey(call.uid, ['xstaskhd', 'huodonghd']); HongDianChange.sendChangeKey(call.uid, ['xstaskhd', 'huodonghd']);
if (!tequan) {
prizeArr.push(...taskConf.prize)
} else {
for (let i = 0; i < 3; i++) {
prizeArr.push(...taskConf.prize)
}
}
prizeArr.push(...taskConf.prize) prizeArr.push(...taskConf.prize)
} }
call.succ({ call.succ({

View File

@ -1,9 +1,10 @@
import { ApiCall } from "tsrpc"; import {ApiCall} from "tsrpc";
import { PlayerFun } from '../../public/player'; import {PlayerFun} from '../../public/player';
import { XstaskFun } from '../../public/xstask'; import {XstaskFun} from '../../public/xstask';
import { ReqGet, ResGet } from "../../shared/protocols/xstask/PtlGet"; import {ReqGet, ResGet} from "../../shared/protocols/xstask/PtlGet";
import { HongDianChange } from "../hongdian/fun"; import {HongDianChange} from "../hongdian/fun";
import { PublicShared } from '../../shared/public/public'; import {PublicShared} from '../../shared/public/public';
import {TeQuanFun} from "../../public/tequan";
export default async function (call: ApiCall<ReqGet, ResGet>) { export default async function (call: ApiCall<ReqGet, ResGet>) {
@ -23,10 +24,10 @@ export default async function (call: ApiCall<ReqGet, ResGet>) {
} }
} }
let change: Parameters<typeof XstaskFun.changeInfo>[1] = { $inc: {} }; let change: Parameters<typeof XstaskFun.changeInfo>[1] = {$inc: {}};
change.$inc[`finishNum.${taskConf.colour}`] = 1; change.$inc[`finishNum.${taskConf.colour}`] = 1;
// 比对派遣时间如果小于当日0点则更新新任务否则该变领取状态为true // 比对派遣时间如果小于当日0点则更新新任务否则该变领取状态为true
if(task.receiveData.time < PublicShared.getToDayZeroTime()) { if (task.receiveData.time < PublicShared.getToDayZeroTime()) {
// 更新任务 // 更新任务
let newTask = XstaskFun.randomTasks(taskInfo?.lv, 1) let newTask = XstaskFun.randomTasks(taskInfo?.lv, 1)
XstaskFun.updateTask(call.uid, call.req._id, newTask[0].taskId) XstaskFun.updateTask(call.uid, call.req._id, newTask[0].taskId)
@ -35,12 +36,20 @@ export default async function (call: ApiCall<ReqGet, ResGet>) {
XstaskFun.finishTask(call.uid, call.req._id) XstaskFun.finishTask(call.uid, call.req._id)
} }
// XstaskFun.delTask(call.uid, call.req._id); // XstaskFun.delTask(call.uid, call.req._id);
let send_prize = [];
XstaskFun.changeInfo(call.uid, change); XstaskFun.changeInfo(call.uid, change);
await PlayerFun.sendPrize(call, taskConf.prize); if (!await TeQuanFun.getXsTaskNum(call)) {
send_prize = taskConf.prize;
} else {
for (let i = 0; i < 3; i++) {
send_prize = send_prize.concat(taskConf.prize)
}
}
await PlayerFun.sendPrize(call, send_prize);
HongDianChange.sendChangeKey(call.uid, ['xstaskhd', 'huodonghd']); HongDianChange.sendChangeKey(call.uid, ['xstaskhd', 'huodonghd']);
call.succ({ call.succ({
taskList: await XstaskFun.getAllTask(call.uid), taskList: await XstaskFun.getAllTask(call.uid),
prize: taskConf.prize prize: send_prize
}); });
} }

View File

@ -36,7 +36,7 @@ export default async function (call: ApiCall<ReqOpen, ResOpen>) {
XstaskFun.delTasks(call.uid, delTask.map(task => task._id)); XstaskFun.delTasks(call.uid, delTask.map(task => task._id));
} }
needAddTask += await TeQuanFun.getXsTaskNum(call); // needAddTask += await TeQuanFun.getXsTaskNum(call);
needAddTask && await XstaskFun.addTasks(call.uid, XstaskFun.randomTasks(taskInfo?.lv || changeInfo.lv, needAddTask)); needAddTask && await XstaskFun.addTasks(call.uid, XstaskFun.randomTasks(taskInfo?.lv || changeInfo.lv, needAddTask));
let { _id, uid, type, ...info } = taskInfo || changeInfo as typeof taskInfo; let { _id, uid, type, ...info } = taskInfo || changeInfo as typeof taskInfo;

View File

@ -9,7 +9,10 @@ async function connGameLogDB() {
}else{ }else{
logDBUrl = "mongodb://root:lyMaple525458@10.0.1.20:27017/heijiao_gamelog?authSource=admin"; logDBUrl = "mongodb://root:lyMaple525458@10.0.1.20:27017/heijiao_gamelog?authSource=admin";
} }
let client = await MongoClient.connect(logDBUrl,{maxPoolSize:10}); let client = await MongoClient.connect(logDBUrl,{
maxPoolSize:10,
maxIdleTimeMS: 5*60*1000
});
logDB = client.db(`gameLog${G.config.serverId}`); logDB = client.db(`gameLog${G.config.serverId}`);
return logDB; return logDB;
} }

View File

@ -16,6 +16,7 @@ import { player } from './shared/protocols/user/type';
import { PublicShared } from './shared/public/public'; import { PublicShared } from './shared/public/public';
import { setGud } from './public/gud'; import { setGud } from './public/gud';
import {checkResetBuyLog} from "./api_s2c/event/zhoumolibao/ApiOpen"; import {checkResetBuyLog} from "./api_s2c/event/zhoumolibao/ApiOpen";
import {Christmasfun} from "./api_s2c/event/christmas/fun";
export type gEventType = { export type gEventType = {
/**玩家断开连接 */ /**玩家断开连接 */
@ -23,7 +24,7 @@ export type gEventType = {
/**玩家修改名字 */ /**玩家修改名字 */
PLAYER_CHANGE_NAME: (gud: player, name: string) => void; PLAYER_CHANGE_NAME: (gud: player, name: string) => void;
/**玩家充值 */ /**玩家充值 */
PLAYER_PAY: (gud: player, payId: string, type: 'user' | 'system') => void; PLAYER_PAY: (gud: player, payId: string, type: 'user' | 'system', call) => void;
/**玩家发生api调用 */ /**玩家发生api调用 */
API_CALL: (node: { call: ApiCall, return: ApiReturn<any>; }) => void; API_CALL: (node: { call: ApiCall, return: ApiReturn<any>; }) => void;
/**玩家每日首次登陆 */ /**玩家每日首次登陆 */
@ -138,6 +139,10 @@ export type gEventType = {
Class_task_152: (eventname, call, val, chkVal) => void; Class_task_152: (eventname, call, val, chkVal) => void;
/**合成x次装备 */ /**合成x次装备 */
Class_task_153: (eventname, call, val, chkVal) => void; Class_task_153: (eventname, call, val, chkVal) => void;
/**参与圣诞活动小游戏 */
Class_task_154: (eventname, call, val, chkVal) => void;
/**每日任务宝箱领取 */
Class_task_155: (eventname, call, val, chkVal) => void;
}; };
export function addListener() { export function addListener() {
@ -166,13 +171,14 @@ export function addListener() {
} }
}); });
G.on('PLAYER_PAY', async (player, payId, payArgs) => { G.on('PLAYER_PAY', async (player, payId, payArgs,call) => {
let conf: any = await PayFun.getConf(payId, payArgs); let conf: any = await PayFun.getConf(payId, payArgs);
ActionLog.addDayLog(player.uid, { key: 'pay', val: conf.payExp[0].n }); ActionLog.addDayLog(player.uid, { key: 'pay', val: conf.payExp[0].n });
ActionLog.addRetainLog(player.uid, { key: 'pay', val: conf.payExp[0].n }); ActionLog.addRetainLog(player.uid, { key: 'pay', val: conf.payExp[0].n });
if (payId == G.gc.zhanling.payId) payZhanLing(player); if (payId == G.gc.zhanling.payId) payZhanLing(player);
//圣诞节活动充值
Christmasfun.payChristmas(payId, call);
let payEmailConf = G.gc.payEmail[payId] as _gcType['payEmail']['caifutequan']; let payEmailConf = G.gc.payEmail[payId] as _gcType['payEmail']['caifutequan'];
if (payEmailConf?.length > 0) { if (payEmailConf?.length > 0) {
let sendEmailConfs = payEmailConf; let sendEmailConfs = payEmailConf;
@ -202,18 +208,17 @@ export function addListener() {
ActionLog.addRetainLog(gud.uid, { key: 'login_day', val: 1 }); ActionLog.addRetainLog(gud.uid, { key: 'login_day', val: 1 });
ZhanLingTasks.clearLog(gud.uid, 'day'); ZhanLingTasks.clearLog(gud.uid, 'day');
PayFun.checkGiftDayEmail(gud, lastTime, curTime); PayFun.checkGiftDayEmail(gud, lastTime, curTime);
reissuePrize(gud, lastTime, curTime); reissuePrize(gud, lastTime, curTime);
addDay(gud); addDay(gud);
// 任务累计登录天数 // 任务累计登录天数
let call = PayFun.getCall(gud); let call = PayFun.getCall(gud);
G.emit("Class_task_135", 'Class_task_135', call, 1, 0); G.emit("Class_task_135", 'Class_task_135', call, 1, 0);
// 七日登录活动计数 // 七日登录活动计数
qiRiDengLuAddDay(call); qiRiDengLuAddDay(call);
// 周末礼包检测刷新 // 周末礼包检测刷新
checkResetBuyLog(call) checkResetBuyLog(call);
}); });
G.on('API_CALL', node => { G.on('API_CALL', node => {

View File

@ -108,5 +108,25 @@
"sicon": "icon_heroBox_11", "sicon": "icon_heroBox_11",
"describe": "tlsd_guess_prize_3", "describe": "tlsd_guess_prize_3",
"advancedEffects": "ani_xiangzikuang" "advancedEffects": "ani_xiangzikuang"
},
"shengdanExp": {
"id": "shengdanExp",
"name": "intr_attr_name_13",
"undefined": "圣诞战令经验",
"colour": 5,
"icon": "icon_sdhd_item_1",
"sicon": "icon_sdhd_item_1",
"describe": "intr_attr_describe_13",
"advancedEffects": "ani_xiangzikuang"
},
"shengdanBullet": {
"id": "shengdanBullet",
"name": "intr_attr_name_14",
"undefined": "圣诞子弹",
"colour": 5,
"icon": "icon_chegaipq",
"sicon": "icon_chegaipq",
"describe": "intr_attr_describe_14",
"advancedEffects": "ani_xiangzikuang"
} }
} }

View File

@ -154,7 +154,7 @@
}, },
"jiubabaodi": { "jiubabaodi": {
"numbd": { "numbd": {
"50": [10011], "30": [10011],
"250": [10012], "250": [10012],
"550": [10011], "550": [10011],
"1000": [10011], "1000": [10011],

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,62 @@
{
"1": {
"id": 1,
"jieji": 0,
"ewai_buff": 0
},
"2": {
"id": 2,
"jieji": 1,
"ewai_buff": 0
},
"3": {
"id": 3,
"jieji": 2,
"ewai_buff": 0
},
"4": {
"id": 4,
"jieji": 3,
"ewai_buff": 0
},
"5": {
"id": 5,
"jieji": 4,
"ewai_buff": 40
},
"6": {
"id": 6,
"jieji": 5,
"ewai_buff": 50
},
"7": {
"id": 7,
"jieji": 6,
"ewai_buff": 60
},
"8": {
"id": 8,
"jieji": 7,
"ewai_buff": 80
},
"9": {
"id": 9,
"jieji": 8,
"ewai_buff": 100
},
"10": {
"id": 10,
"jieji": 9,
"ewai_buff": 120
},
"11": {
"id": 11,
"jieji": 10,
"ewai_buff": 140
},
"12": {
"id": 12,
"jieji": 11,
"ewai_buff": 180
}
}

View File

@ -7,15 +7,15 @@
{ {
total: 2, total: 2,
gudKey: 'loginDays', gudKey: 'loginDays',
prize: [{a: 'hero', t: '4013', n: 1}]
},
{
total: 1,
gudKey: 'payExp',
prize: [{a: 'hero', t: '4005', n: 1}] prize: [{a: 'hero', t: '4005', n: 1}]
}, },
{ {
total: 1, total: 1,
prize: [{a: 'hero', t: '4002', n: 1}] gudKey: 'payExp',
prize: [{a: 'item', t: '4', n: 10}]
},
{
total: 1,
prize: [{a: 'hero', t: '4012', n: 1}]
} }
] ]

View File

@ -2469,7 +2469,7 @@
'tujing': '', 'tujing': '',
'title': 'intr_yczm_day_des_2', 'title': 'intr_yczm_day_des_2',
'type': 2, 'type': 2,
'pval': 300, 'pval': 250,
'cond': [], 'cond': [],
'stype': 118 'stype': 118
}, },
@ -2478,12 +2478,21 @@
'tujing': '', 'tujing': '',
'title': 'intr_yczm_day_des_2', 'title': 'intr_yczm_day_des_2',
'type': 2, 'type': 2,
'pval': 400, 'pval': 300,
'cond': [], 'cond': [],
'stype': 118 'stype': 118
}, },
'2006': { '2006': {
'prize': [{'a': 'item', 't': '4', 'n': 10}, {'a': 'item', 't': '600', 'n': 40}], 'prize': [{'a': 'item', 't': '4', 'n': 10}, {'a': 'item', 't': '619', 'n': 1}],
'tujing': '',
'title': 'intr_yczm_day_des_2',
'type': 2,
'pval': 400,
'cond': [],
'stype': 118
},
'2007': {
'prize': [{'a': 'item', 't': '4', 'n': 10}, {'a': 'item', 't': '619', 'n': 1}],
'tujing': '', 'tujing': '',
'title': 'intr_yczm_day_des_2', 'title': 'intr_yczm_day_des_2',
'type': 2, 'type': 2,
@ -2608,7 +2617,7 @@
'tujing': '', 'tujing': '',
'title': 'intr_yczm_day_des_2', 'title': 'intr_yczm_day_des_2',
'type': 2, 'type': 2,
'pval': 300, 'pval': 250,
'cond': [], 'cond': [],
'stype': 118 'stype': 118
}, },
@ -2617,12 +2626,21 @@
'tujing': '', 'tujing': '',
'title': 'intr_yczm_day_des_2', 'title': 'intr_yczm_day_des_2',
'type': 2, 'type': 2,
'pval': 400, 'pval': 300,
'cond': [], 'cond': [],
'stype': 118 'stype': 118
}, },
'2006': { '2006': {
'prize': [{'a': 'item', 't': '4', 'n': 10}, {'a': 'item', 't': '600', 'n': 40}], 'prize': [{'a': 'item', 't': '4', 'n': 10}, {'a': 'item', 't': '619', 'n': 1}],
'tujing': '',
'title': 'intr_yczm_day_des_2',
'type': 2,
'pval': 400,
'cond': [],
'stype': 118
},
'2007': {
'prize': [{'a': 'item', 't': '4', 'n': 10}, {'a': 'item', 't': '619', 'n': 1}],
'tujing': '', 'tujing': '',
'title': 'intr_yczm_day_des_2', 'title': 'intr_yczm_day_des_2',
'type': 2, 'type': 2,
@ -3276,6 +3294,481 @@
} }
}, },
{ {
"hdid" : 8000, // 唯一活动id 圣诞活动
"htype" : 8,
"stype" : 800,
"ttype" : 4, // 0 按照开服时间计算1 玩家注册时间计算 4 屏蔽此活动
"stime" : 60,
"rtime" : 90,
"etime" : 90,
"name" : "sdhd_tips_1",
"icon" : "icon_xfdj",
"showtime" : "根据玩家注册时间,游戏返回时复写",
"data" : {
//任务
"task" : {
"1": {
"pval" : 1,
"stype" : "128",
"cond": [],
"prize" : [
{
"a" : "attr",
"t" : "shengdanExp",
"n" : 100
},
{
"a" : "attr",
"t" : "shengdanBullet",
"n" : 2
},
{
"a" : "attr",
"t" : "rmbmoney",
"n" : 200
},
{
"a" : "item",
"t" : "1",
"n" : 100000
}
],
"des" : "intr_cszl_des_1"
},
"2": {
"pval" : 300,
"stype" : "116",
"cond": [],
"prize" : [
{
"a" : "attr",
"t" : "shengdanExp",
"n" : 200
},
{
"a" : "attr",
"t" : "shengdanBullet",
"n" : 3
},
{
"a" : "item",
"t" : "600",
"n" : 5
},
{
"a" : "item",
"t" : "1",
"n" : 500000
}
],
"des" : "intr_cszl_des_2"
},
"3": {
"pval" : 1000,
"stype" : "116",
"cond": [],
"prize" : [
{
"a" : "attr",
"t" : "shengdanExp",
"n" : 300
},
{
"a" : "attr",
"t" : "shengdanBullet",
"n" : 5
},
{
"a" : "item",
"t" : "600",
"n" : 10
},
{
"a" : "item",
"t" : "1",
"n" : 1000000
}
],
"des" : "intr_cszl_des_3"
},
"4": {
"pval" : 2000,
"stype" : "116",
"cond": [],
"prize" : [
{
"a" : "attr",
"t" : "shengdanExp",
"n" : 150
},
{
"a" : "attr",
"t" : "shengdanBullet",
"n" : 2
},
{
"a" : "item",
"t" : "6",
"n" : 10
},
{
"a" : "item",
"t" : "1",
"n" : 200000
}
],
"des" : "intr_cszl_des_4"
},
"5": {
"pval" : 3,
"stype" : "142",
"cond": [2],
"prize" : [
{
"a" : "attr",
"t" : "shengdanExp",
"n" : 100
},
{
"a" : "attr",
"t" : "shengdanBullet",
"n" : 2
},
{
"a" : "item",
"t" : "2",
"n" : 500
},
{
"a" : "item",
"t" : "1",
"n" : 200000
}
],
"des" : "intr_cszl_des_5"
},
"6": {
"pval" : 3,
"stype" : "122",
"cond": [],
"prize" : [
{
"a" : "attr",
"t" : "shengdanExp",
"n" : 200
},
{
"a" : "attr",
"t" : "shengdanBullet",
"n" : 2
},
{
"a" : "item",
"t" : "12",
"n" : 400
},
{
"a" : "item",
"t" : "1",
"n" : 200000
}
],
"des" : "intr_cszl_des_6"
},
"7": {
"pval" : 1,
"stype" : "155",
"cond": [],
"prize" : [
{
"a" : "attr",
"t" : "shengdanExp",
"n" : 100
},
{
"a" : "attr",
"t" : "shengdanBullet",
"n" : 2
},
{
"a" : "attr",
"t" : "rmbmoney",
"n" : 200
},
{
"a" : "item",
"t" : "1",
"n" : 100000
}
],
"des" : "intr_cszl_des_7"
},
"8": {
"pval" : 1,
"stype" : "127",
"cond": [],
"prize" : [
{
"a" : "attr",
"t" : "shengdanExp",
"n" : 100
},
{
"a" : "attr",
"t" : "shengdanBullet",
"n" : 2
},
{
"a" : "item",
"t" : "21",
"n" : 50
},
{
"a" : "item",
"t" : "1",
"n" : 100000
}
],
"des" : "intr_cszl_des_8"
},
"9": {
"pval" : 1,
"stype" : "154",
"cond": [],
"prize" : [
{
"a" : "attr",
"t" : "shengdanExp",
"n" : 100
},
{
"a" : "attr",
"t" : "shengdanBullet",
"n" : 2
},
{
"a" : "attr",
"t" : "jinbi",
"n" : 100000
},
{
"a" : "item",
"t" : "1",
"n" : 100000
}
],
"des" : "intr_cszl_des_9"
},
},
//玩游戏需要消耗
"gameneed": [{"a": "attr", "t":"shengdanBullet", "n": 1}],
//玩游戏拿分
"game": [5,10,20,30,50],
//免费玩游戏次数
"gamefree": 3,
//战令
"zhanling":[
{
"val": 2500,
"pt": [{"a": "item", "t":"1", "n": 200000}],
"gj": [{"a": "item", "t":"50009", "n": 1},{"a": "item", "t":"1", "n": 500000}]
},
{
"val": 5000,
"pt": [{"a": "attr", "t":"rmbmoney", "n": 500}],
"gj": [{"a": "item", "t":"23", "n": 2000},{"a": "item", "t":"1", "n": 500000}]
},
{
"val": 7500,
"pt": [{"a": "item", "t":"50104", "n": 1}],
"gj": [{"a": "item", "t":"9", "n": 100},{"a": "item", "t":"10", "n": 800}]
},
{
"val": 10000,
"pt": [{"a": "item", "t":"4", "n": 10}],
"gj": [{"a": "item", "t":"28", "n": 5000},{"a": "item", "t":"605", "n": 2}]
},
{
"val": 12500,
"pt": [{"a": "item", "t":"2", "n": 500}],
"gj": [{"a": "item", "t":"9", "n": 150},{"a": "item", "t":"10", "n": 1500}]
},
{
"val": 15000,
"pt": [{"a": "item", "t":"600", "n": 10}],
"gj": [{"a": "item", "t":"605", "n": 2},{"a": "item", "t":"28", "n": 10000}]
},
{
"val": 17500,
"pt": [{"a": "item", "t":"600", "n": 10}],
"gj": [{"a": "item", "t":"605", "n": 2},{"a": "item", "t":"28", "n": 20000}]
},
{
"val": 20000,
"pt": [{"a": "item", "t":"10", "n": 800}],
"gj": [{"a": "item", "t":"600", "n": 20},{"a": "item", "t":"28", "n": 20000}]
},
{
"val": 22500,
"pt": [{"a": "attr", "t":"rmbmoney", "n": 2000}],
"gj": [{"a": "item", "t":"600", "n": 20},{"a": "item", "t":"28", "n": 20000}]
}
],
"zlpayid":"ycmb_1_1",
//活动礼包
"libao": {
"1": {
"payid": "",
"buynum": 1,
"basep": [{"a": "attr", "t":"rmbmoney", "n": 100}],
"des" : "intr_cszl_des_10",
"dlz": [
{
"1": {"a": "attr", "t":"jinbi", "n": 100000},
"2": {"a": "item", "t":"1", "n": 50000}
}
]
},
"2": {
"payid": "pay_name_sdhd_libao_2",
"buynum": 2,
"basep": [{"a": "attr", "t":"rmbmoney", "n": 120}],
"des" : "intr_cszl_des_11",
"dlz": [
{
"1": {"a": "item", "t":"2", "n": 400},
"2": {"a": "item", "t":"12", "n": 200}
},
{
"1": {"a": "attr", "t":"jinbi", "n": 1000000},
"2": {"a": "item", "t":"1", "n": 500000}
}
]
},
"3": {
"payid": "pay_name_sdhd_libao_3",
"buynum": 2,
"basep": [{"a": "attr", "t":"rmbmoney", "n": 300}],
"des" : "intr_cszl_des_12",
"dlz": [
{
"1": {"a": "item", "t":"9", "n": 500},
"2": {"a": "item", "t":"10", "n": 100}
},
{
"1": {"a": "item", "t":"9", "n": 500},
"2": {"a": "item", "t":"10", "n": 100}
},
{
"1": {"a": "item", "t":"9", "n": 500},
"2": {"a": "item", "t":"10", "n": 100}
}
]
},
"4": {
"payid": "pay_name_sdhd_libao_4",
"buynum": 5,
"basep": [{"a": "attr", "t":"rmbmoney", "n": 680}],
"des" : "intr_cszl_des_12",
"dlz": [
{
"1": {"a": "item", "t":"615", "n": 1},
"2": {"a": "item", "t":"18", "n": 200}
},
{
"1": {"a": "item", "t":"615", "n": 1},
"2": {"a": "item", "t":"18", "n": 200}
},
{
"1": {"a": "item", "t":"615", "n": 1},
"2": {"a": "item", "t":"18", "n": 200}
}
]
},
"5": {
"payid": "pay_name_sdhd_libao_5",
"buynum": 9,
"basep": [{"a": "attr", "t":"rmbmoney", "n": 1280}],
"des" : "intr_cszl_des_13",
"dlz": [
{
"1": {"a": "item", "t":"600", "n": 10},
"2": {"a": "item", "t":"605", "n": 2},
"3": {"a": "item", "t":"606", "n": 1}
},
{
"1": {"a": "item", "t":"600", "n": 10},
"2": {"a": "item", "t":"605", "n": 2},
"3": {"a": "item", "t":"606", "n": 1}
},
{
"1": {"a": "item", "t":"1", "n": 5000000},
"2": {"a": "attr", "t":"jinbi", "n": 10000000}
}
]
},
"6": {
"payid": "pay_name_sdhd_libao_6",
"buynum": 9,
"basep": [{"a": "attr", "t":"rmbmoney", "n": 3280}],
"des" : "intr_cszl_des_14",
"dlz": [
{
"1": {"a": "item", "t":"600", "n": 20},
"2": {"a": "item", "t":"5002", "n": 10},
"3": {"a": "item", "t":"5004", "n": 10}
},
{
"1": {"a": "item", "t":"600", "n": 20},
"2": {"a": "item", "t":"5002", "n": 10},
"3": {"a": "item", "t":"5004", "n": 10}
},
{
"1": {"a": "item", "t":"1", "n": 10000000},
"2": {"a": "item", "t":"12", "n": 1000},
"3": {"a": "item", "t":"2", "n": 2000},
"4": {"a": "item", "t":"18", "n": 500}
}
]
},
"7": {
"payid": "pay_name_sdhd_libao_7",
"buynum": 9,
"basep": [{"a": "attr", "t":"rmbmoney", "n": 6480}],
"des" : "intr_cszl_des_14",
"dlz": [
{
"1": {"a": "item", "t":"600", "n": 30},
"2": {"a": "item", "t":"5002", "n": 20},
"3": {"a": "item", "t":"5004", "n": 20}
},
{
"1": {"a": "item", "t":"600", "n": 30},
"2": {"a": "item", "t":"5002", "n": 20},
"3": {"a": "item", "t":"5004", "n": 20}
},
{
"1": {"a": "item", "t":"605", "n": 4},
"2": {"a": "item", "t":"606", "n": 2},
"3": {"a": "item", "t":"18", "n": 1000},
"4": {"a": "item", "t":"23", "n": 1000000}
}
]
},
},
//签到奖励
"qiandao": [
[{"a": "attr", "t":"shengdanExp", "n": 100},{"a": "attr", "t":"shengdanBullet", "n": 1},{"a": "item", "t":"4", "n": 10},{"a": "item", "t":"1", "n": 300000}],
[{"a": "attr", "t":"shengdanExp", "n": 100},{"a": "attr", "t":"shengdanBullet", "n": 1},{"a": "attr", "t":"rmbmoney", "n": 300},{"a": "item", "t":"1", "n": 300000}],
[{"a": "attr", "t":"shengdanExp", "n": 100},{"a": "attr", "t":"shengdanBullet", "n": 1},{"a": "item", "t":"12", "n": 300},{"a": "item", "t":"1", "n": 300000}],
[{"a": "attr", "t":"shengdanExp", "n": 100},{"a": "attr", "t":"shengdanBullet", "n": 1},{"a": "item", "t":"9", "n": 200},{"a": "item", "t":"1", "n": 300000}],
[{"a": "attr", "t":"shengdanExp", "n": 100},{"a": "attr", "t":"shengdanBullet", "n": 1},{"a": "item", "t":"2", "n": 400},{"a": "item", "t":"1", "n": 300000}],
[{"a": "attr", "t":"shengdanExp", "n": 100},{"a": "attr", "t":"shengdanBullet", "n": 1},{"a": "item", "t":"27", "n": 5000},{"a": "item", "t":"1", "n": 300000}],
[{"a": "attr", "t":"shengdanExp", "n": 100},{"a": "attr", "t":"shengdanBullet", "n": 1},{"a": "item", "t":"4", "n": 10},{"a": "item", "t":"1", "n": 300000}],
]
}
},
{
"hdid" : 9000, // 唯一活动id 周末礼包 "hdid" : 9000, // 唯一活动id 周末礼包
"htype" : 9, // 后端唯一识别标识 "htype" : 9, // 后端唯一识别标识
"stype" : 900, // 前端唯一识别标识(看前端需要是否修改) "stype" : 900, // 前端唯一识别标识(看前端需要是否修改)
@ -3330,6 +3823,168 @@
} }
] ]
} }
},
{
"hdid" : 10000, // 唯一活动id 超值好礼
"htype" : 10, // 后端唯一识别标识
"stype" : 1000, // 前端唯一识别标识(看前端需要是否修改)
"ttype" : 0, // 0 按照开服时间计算1 玩家注册时间计算 4 屏蔽此活动
"stime" : 0, // 活动开始天数
"rtime" : 30, // 活动显示结束天数
"etime" : 30, // 活动实际结束
"name": "czlibao",
"icon": "icon_czlibao",
"showtime" : "仅供参考,会复写正确值", // 自选礼包,如果存在多个活动,计费点不要设置一样;如果是一样,可能会存在付费一次,购买多次。
"data" : {
//活动文本描述
intr: "czlbtips_1",
intr: "czlbtips_2",
//礼包
//礼包
gift: [
{
id: '1',
name: 'czlbtips_4',
need: [],
free: false,
payId: 'czlb_1',
buyNum: 1,
prize: [
{
"a": "item",
"t": "13",
"n": 600
}
],
"recPrize1": [
{
"a": "item",
"t": "13",
"n": 600
}
],
"recPrize2": [
{
"a": "item",
"t": "13",
"n": 600
}
]
},
{
id: '2',
name: 'czlbtips_5',
need: [],
free: false,
payId: 'czlb_2',
buyNum: 1,
prize: [
{
"a": "item",
"t": "13",
"n": 600
}
],
"recPrize1": [
{
"a": "item",
"t": "13",
"n": 600
}
],
"recPrize2": [
{
"a": "item",
"t": "13",
"n": 600
}
]
},
{
id: '3',
name: 'czlbtips_6',
need: [],
free: false,
payId: 'czlb_3',
buyNum: 1,
prize: [
{
"a": "item",
"t": "13",
"n": 600
}
],
"recPrize1": [
{
"a": "item",
"t": "13",
"n": 600
}
],
"recPrize2": [
{
"a": "item",
"t": "13",
"n": 600
}
]
}
]
}
},
{
"hdid" : 11000, // 唯一活动id 消费竞赛
"htype" : 11, // 后端唯一识别标识
"stype" : 1100, // 前端唯一识别标识(看前端需要是否修改)
"ttype" : 0, // 0 按照开服时间计算1 玩家注册时间计算 4 屏蔽此活动
"stime" : 0, // 活动开始天数
"rtime" : 30, // 活动显示结束天数
"etime" : 30, // 活动实际结束
"name": "xfjs",
"icon": "icon_xfjs",
"showtime" : "仅供参考,会复写正确值", // 自选礼包,如果存在多个活动,计费点不要设置一样;如果是一样,可能会存在付费一次,购买多次。
"data" : {
//活动文本描述
intr: "xfjstips_1",
intr: "xfjstips_2",
//排名
rank: [
{
id: '1',
name: 'xfjstips_3',
rank:[1],
need: [{'a': 'attr', 't': 'rmbmoney', 'n': 20000}],
prize: [{'a': 'item', 't': '13', 'n': 600}]
},
{
id: '2',
name: 'xfjstips_4',
rank:[2],
need: [{'a': 'attr', 't': 'rmbmoney', 'n': 18000}],
prize: [{'a': 'item', 't': '13', 'n': 600}]
},
{
id: '3',
name: 'xfjstips_5',
rank:[3],
need: [{'a': 'attr', 't': 'rmbmoney', 'n': 16000}],
prize: [{'a': 'item', 't': '13', 'n': 600}]
},
{
id: '4',
name: 'xfjstips_6',
rank:[4,10],
need: [{'a': 'attr', 't': 'rmbmoney', 'n': 14000}],
prize: [{'a': 'item', 't': '13', 'n': 600}]
},
{
id: '5',
name: 'xfjstips_7',
rank:[11,30],
need: [{'a': 'attr', 't': 'rmbmoney', 'n': 12000}],
prize: [{'a': 'item', 't': '13', 'n': 600}]
}
]
}
} }
] ]

View File

@ -116,7 +116,7 @@
"6": { "6": {
"id": 6, "id": 6,
"name": "intr_item_name_6", "name": "intr_item_name_6",
"undefined": "每次进行干部特训需要消耗1个特训指南", "undefined": "用于干部特训,消耗特训指南挑战成功后可获得干部碎片",
"type": 1, "type": 1,
"sort": 1, "sort": 1,
"colour": 4, "colour": 4,
@ -155,7 +155,7 @@
"9": { "9": {
"id": 9, "id": 9,
"name": "intr_item_name_9", "name": "intr_item_name_9",
"undefined": "润滑剂,用于专属武器升星", "undefined": "稀有材料,可用于专属武器升星",
"type": 1, "type": 1,
"sort": 1, "sort": 1,
"colour": 4, "colour": 4,
@ -464,7 +464,7 @@
"24": { "24": {
"id": 24, "id": 24,
"name": "intr_item_name_24", "name": "intr_item_name_24",
"undefined": "使用后直接快速探险2小时", "undefined": "用于主线探险,使用后直接获得快速探险2小时的收益",
"type": 2, "type": 2,
"sort": 1, "sort": 1,
"colour": 5, "colour": 5,
@ -1204,7 +1204,7 @@
"607": { "607": {
"id": 607, "id": 607,
"name": "intr_item_name_607", "name": "intr_item_name_607",
"undefined": "使用后可以自选艾达,加尔西亚,葛丽特中一个干部的碎片", "undefined": "使用后可以自选艾达,加尔西亚,葛丽特,达奇,汉塞尔中一个干部的碎片",
"type": 2, "type": 2,
"sort": 1, "sort": 1,
"colour": 5, "colour": 5,
@ -2072,6 +2072,50 @@
"payId": "", "payId": "",
"advancedEffects": "ani_xiangzikuang" "advancedEffects": "ani_xiangzikuang"
}, },
"637": {
"id": 637,
"name": "intr_item_name_637",
"undefined": "使用后可以选择获得巴拉莱卡、罗贝尔特中的一个干部",
"type": 2,
"sort": 1,
"colour": 6,
"way": [],
"go": "",
"icon": "icon_heroBox_3",
"sicon": "icon_heroBox_3",
"describe": "intr_item_describe_637",
"useNeed": [],
"usePrize": [],
"selecPrize": [
{
"a": "hero",
"t": "5001",
"n": 1
},
{
"a": "hero",
"t": "5002",
"n": 1
},
{
"a": "hero",
"t": "5003",
"n": 1
},
{
"a": "hero",
"t": "5004",
"n": 1
},
{
"a": "hero",
"t": "5005",
"n": 1
}
],
"payId": "",
"advancedEffects": "ani_xiangzihong"
},
"1001": { "1001": {
"id": 1001, "id": 1001,
"name": "intr_item_name_1001", "name": "intr_item_name_1001",
@ -3950,6 +3994,24 @@
"payId": "", "payId": "",
"advancedEffects": "" "advancedEffects": ""
}, },
"50009": {
"id": 50009,
"name": "playerheadFrame_name_23",
"undefined": "使用后解锁头像框“圣诞氛围”",
"type": 7,
"sort": 1,
"colour": 4,
"way": [],
"go": "",
"icon": "txk_028",
"describe": "intr_item_describe_50009",
"diaoluo": 23,
"useNeed": [],
"usePrize": [],
"selecPrize": [],
"payId": "",
"advancedEffects": ""
},
"50101": { "50101": {
"id": 50101, "id": 50101,
"name": "playerChatFrame_name_6", "name": "playerChatFrame_name_6",
@ -4001,7 +4063,26 @@
"useNeed": [], "useNeed": [],
"usePrize": [], "usePrize": [],
"selecPrize": [], "selecPrize": [],
"payId": "" "payId": "",
"advancedEffects": ""
},
"50104": {
"id": 50104,
"name": "playerChatFrame_name_8",
"undefined": "使用后解锁聊天框“圣诞快乐”",
"type": 8,
"sort": 1,
"colour": 4,
"way": [],
"go": "",
"icon": "lt_dhk14",
"describe": "intr_item_describe_50104",
"diaoluo": 8,
"useNeed": [],
"usePrize": [],
"selecPrize": [],
"payId": "",
"advancedEffects": ""
}, },
"50201": { "50201": {
"id": 50201, "id": 50201,
@ -4011,13 +4092,15 @@
"sort": 1, "sort": 1,
"colour": 4, "colour": 4,
"way": [], "way": [],
"go": "",
"icon": "txk_017", "icon": "txk_017",
"describe": "intr_item_describe_50201", "describe": "intr_item_describe_50201",
"diaoluo": 16, "diaoluo": 16,
"useNeed": [], "useNeed": [],
"usePrize": [], "usePrize": [],
"selecPrize": [], "selecPrize": [],
"payId": "" "payId": "",
"advancedEffects": ""
}, },
"50202": { "50202": {
"id": 50202, "id": 50202,
@ -4027,13 +4110,15 @@
"sort": 1, "sort": 1,
"colour": 4, "colour": 4,
"way": [], "way": [],
"go": "",
"icon": "txk_011", "icon": "txk_011",
"describe": "intr_item_describe_50202", "describe": "intr_item_describe_50202",
"diaoluo": 17, "diaoluo": 17,
"useNeed": [], "useNeed": [],
"usePrize": [], "usePrize": [],
"selecPrize": [], "selecPrize": [],
"payId": "" "payId": "",
"advancedEffects": ""
}, },
"50203": { "50203": {
"id": 50203, "id": 50203,
@ -4043,13 +4128,15 @@
"sort": 1, "sort": 1,
"colour": 4, "colour": 4,
"way": [], "way": [],
"go": "",
"icon": "txk_005", "icon": "txk_005",
"describe": "intr_item_describe_50203", "describe": "intr_item_describe_50203",
"diaoluo": 18, "diaoluo": 18,
"useNeed": [], "useNeed": [],
"usePrize": [], "usePrize": [],
"selecPrize": [], "selecPrize": [],
"payId": "" "payId": "",
"advancedEffects": ""
}, },
"50204": { "50204": {
"id": 50204, "id": 50204,
@ -4059,13 +4146,15 @@
"sort": 1, "sort": 1,
"colour": 4, "colour": 4,
"way": [], "way": [],
"go": "",
"icon": "txk_004", "icon": "txk_004",
"describe": "intr_item_describe_50204", "describe": "intr_item_describe_50204",
"diaoluo": 19, "diaoluo": 19,
"useNeed": [], "useNeed": [],
"usePrize": [], "usePrize": [],
"selecPrize": [], "selecPrize": [],
"payId": "" "payId": "",
"advancedEffects": ""
}, },
"50205": { "50205": {
"id": 50205, "id": 50205,
@ -4075,13 +4164,15 @@
"sort": 1, "sort": 1,
"colour": 4, "colour": 4,
"way": [], "way": [],
"go": "",
"icon": "txk_024", "icon": "txk_024",
"describe": "intr_item_describe_50205", "describe": "intr_item_describe_50205",
"diaoluo": 20, "diaoluo": 20,
"useNeed": [], "useNeed": [],
"usePrize": [], "usePrize": [],
"selecPrize": [], "selecPrize": [],
"payId": "" "payId": "",
"advancedEffects": ""
}, },
"50206": { "50206": {
"id": 50206, "id": 50206,
@ -4091,13 +4182,15 @@
"sort": 1, "sort": 1,
"colour": 4, "colour": 4,
"way": [], "way": [],
"go": "",
"icon": "txk_013", "icon": "txk_013",
"describe": "intr_item_describe_50206", "describe": "intr_item_describe_50206",
"diaoluo": 21, "diaoluo": 21,
"useNeed": [], "useNeed": [],
"usePrize": [], "usePrize": [],
"selecPrize": [], "selecPrize": [],
"payId": "" "payId": "",
"advancedEffects": ""
}, },
"50207": { "50207": {
"id": 50207, "id": 50207,
@ -4107,13 +4200,51 @@
"sort": 1, "sort": 1,
"colour": 4, "colour": 4,
"way": [], "way": [],
"go": "",
"icon": "txk_021", "icon": "txk_021",
"describe": "intr_item_describe_50207", "describe": "intr_item_describe_50207",
"diaoluo": 22, "diaoluo": 22,
"useNeed": [], "useNeed": [],
"usePrize": [], "usePrize": [],
"selecPrize": [], "selecPrize": [],
"payId": "" "payId": "",
"advancedEffects": ""
},
"50301": {
"id": 50301,
"name": "playerModel_name_3",
"undefined": "使用后解锁主角造型“圣诞庆典:男”",
"type": 6,
"sort": 1,
"colour": 5,
"way": [],
"go": "",
"icon": 100011,
"describe": "intr_item_describe_50208",
"diaoluo": 3,
"useNeed": [],
"usePrize": [],
"selecPrize": [],
"payId": "",
"advancedEffects": "ani_xiangzikuang"
},
"50302": {
"id": 50302,
"name": "playerModel_name_4",
"undefined": "使用后解锁主角造型“圣诞庆典:女”",
"type": 6,
"sort": 1,
"colour": 5,
"way": [],
"go": "",
"icon": 100021,
"describe": "intr_item_describe_50209",
"diaoluo": 4,
"useNeed": [],
"usePrize": [],
"selecPrize": [],
"payId": "",
"advancedEffects": "ani_xiangzikuang"
}, },
"60101": { "60101": {
"id": 60101, "id": 60101,

View File

@ -1,5 +1,41 @@
{ {
"dengjijijin": [ "dengjijijin": [
{
"type": "dengjijijin",
"total": 10,
"pt": [
{
"a": "attr",
"t": "rmbmoney",
"n": 300
}
],
"tq": [
{
"a": "attr",
"t": "rmbmoney",
"n": 8000
}
]
},
{
"type": "dengjijijin",
"total": 15,
"pt": [
{
"a": "attr",
"t": "rmbmoney",
"n": 300
}
],
"tq": [
{
"a": "attr",
"t": "rmbmoney",
"n": 2000
}
]
},
{ {
"type": "dengjijijin", "type": "dengjijijin",
"total": 20, "total": 20,
@ -14,7 +50,7 @@
{ {
"a": "attr", "a": "attr",
"t": "rmbmoney", "t": "rmbmoney",
"n": 1700 "n": 2000
} }
] ]
}, },
@ -32,7 +68,7 @@
{ {
"a": "attr", "a": "attr",
"t": "rmbmoney", "t": "rmbmoney",
"n": 1700 "n": 2000
} }
] ]
}, },
@ -50,7 +86,7 @@
{ {
"a": "attr", "a": "attr",
"t": "rmbmoney", "t": "rmbmoney",
"n": 1700 "n": 2000
} }
] ]
}, },
@ -68,7 +104,7 @@
{ {
"a": "attr", "a": "attr",
"t": "rmbmoney", "t": "rmbmoney",
"n": 1700 "n": 2000
} }
] ]
}, },
@ -86,7 +122,7 @@
{ {
"a": "attr", "a": "attr",
"t": "rmbmoney", "t": "rmbmoney",
"n": 1700 "n": 2000
} }
] ]
}, },
@ -104,43 +140,7 @@
{ {
"a": "attr", "a": "attr",
"t": "rmbmoney", "t": "rmbmoney",
"n": 1700 "n": 2000
}
]
},
{
"type": "dengjijijin",
"total": 50,
"pt": [
{
"a": "attr",
"t": "rmbmoney",
"n": 300
}
],
"tq": [
{
"a": "attr",
"t": "rmbmoney",
"n": 1700
}
]
},
{
"type": "dengjijijin",
"total": 55,
"pt": [
{
"a": "attr",
"t": "rmbmoney",
"n": 300
}
],
"tq": [
{
"a": "attr",
"t": "rmbmoney",
"n": 1700
} }
] ]
} }
@ -148,104 +148,104 @@
"guanqiajijin": [ "guanqiajijin": [
{ {
"type": "guanqiajijin", "type": "guanqiajijin",
"total": 30, "total": 10,
"pt": [], "pt": [],
"tq": [ "tq": [
{ {
"a": "attr", "a": "item",
"t": "rmbmoney", "t": "1",
"n": 2000 "n": 3000000
} }
], ],
"des": "guanqiajijin_des_1" "des": "guanqiajijin_des_1"
}, },
{ {
"type": "guanqiajijin", "type": "guanqiajijin",
"total": 50, "total": 20,
"pt": [], "pt": [],
"tq": [ "tq": [
{ {
"a": "attr", "a": "item",
"t": "rmbmoney", "t": "1",
"n": 2000 "n": 3000000
} }
], ],
"des": "guanqiajijin_des_2" "des": "guanqiajijin_des_2"
}, },
{ {
"type": "guanqiajijin", "type": "guanqiajijin",
"total": 70, "total": 40,
"pt": [], "pt": [],
"tq": [ "tq": [
{ {
"a": "attr", "a": "item",
"t": "rmbmoney", "t": "1",
"n": 2000 "n": 3000000
} }
], ],
"des": "guanqiajijin_des_3" "des": "guanqiajijin_des_3"
}, },
{ {
"type": "guanqiajijin", "type": "guanqiajijin",
"total": 90, "total": 60,
"pt": [], "pt": [],
"tq": [ "tq": [
{ {
"a": "attr", "a": "item",
"t": "rmbmoney", "t": "1",
"n": 2000 "n": 3000000
} }
], ],
"des": "guanqiajijin_des_4" "des": "guanqiajijin_des_4"
}, },
{ {
"type": "guanqiajijin", "type": "guanqiajijin",
"total": 110, "total": 80,
"pt": [], "pt": [],
"tq": [ "tq": [
{ {
"a": "attr", "a": "item",
"t": "rmbmoney", "t": "1",
"n": 2000 "n": 3000000
} }
], ],
"des": "guanqiajijin_des_5" "des": "guanqiajijin_des_5"
}, },
{ {
"type": "guanqiajijin", "type": "guanqiajijin",
"total": 150, "total": 100,
"pt": [], "pt": [],
"tq": [ "tq": [
{ {
"a": "attr", "a": "item",
"t": "rmbmoney", "t": "1",
"n": 2000 "n": 3000000
} }
], ],
"des": "guanqiajijin_des_6" "des": "guanqiajijin_des_6"
}, },
{ {
"type": "guanqiajijin", "type": "guanqiajijin",
"total": 180, "total": 120,
"pt": [], "pt": [],
"tq": [ "tq": [
{ {
"a": "attr", "a": "item",
"t": "rmbmoney", "t": "1",
"n": 2000 "n": 3000000
} }
], ],
"des": "guanqiajijin_des_7" "des": "guanqiajijin_des_7"
}, },
{ {
"type": "guanqiajijin", "type": "guanqiajijin",
"total": 250, "total": 140,
"pt": [], "pt": [],
"tq": [ "tq": [
{ {
"a": "attr", "a": "item",
"t": "rmbmoney", "t": "1",
"n": 2000 "n": 3000000
} }
], ],
"des": "guanqiajijin_des_8" "des": "guanqiajijin_des_8"
@ -254,37 +254,37 @@
"dayjijin": [ "dayjijin": [
{ {
"type": "dayjijin", "type": "dayjijin",
"total": 5, "total": 10,
"pt": [ "pt": [
{ {
"a": "item", "a": "attr",
"t": "23", "t": "rmbmoney",
"n": 20000
}
],
"tq": [
{
"a": "item",
"t": "4",
"n": 5
}
]
},
{
"type": "dayjijin",
"total": 15,
"pt": [
{
"a": "item",
"t": "2",
"n": 200 "n": 200
} }
], ],
"tq": [ "tq": [
{ {
"a": "item", "a": "item",
"t": "2", "t": "4",
"n": 2000 "n": 10
}
]
},
{
"type": "dayjijin",
"total": 20,
"pt": [
{
"a": "attr",
"t": "rmbmoney",
"n": 200
}
],
"tq": [
{
"a": "item",
"t": "4",
"n": 10
} }
] ]
}, },
@ -292,35 +292,53 @@
"type": "dayjijin", "type": "dayjijin",
"total": 30, "total": 30,
"pt": [ "pt": [
{
"a": "item",
"t": "23",
"n": 20000
}
],
"tq": [
{ {
"a": "attr", "a": "attr",
"t": "rmbmoney", "t": "rmbmoney",
"n": 888
}
]
},
{
"type": "dayjijin",
"total": 45,
"pt": [
{
"a": "item",
"t": "2",
"n": 200 "n": 200
} }
], ],
"tq": [ "tq": [
{ {
"a": "item", "a": "item",
"t": "615", "t": "4",
"n": 1 "n": 10
}
]
},
{
"type": "dayjijin",
"total": 40,
"pt": [
{
"a": "attr",
"t": "rmbmoney",
"n": 200
}
],
"tq": [
{
"a": "item",
"t": "4",
"n": 10
}
]
},
{
"type": "dayjijin",
"total": 50,
"pt": [
{
"a": "attr",
"t": "rmbmoney",
"n": 200
}
],
"tq": [
{
"a": "item",
"t": "4",
"n": 10
} }
] ]
}, },
@ -329,34 +347,52 @@
"total": 60, "total": 60,
"pt": [ "pt": [
{ {
"a": "item", "a": "attr",
"t": "23", "t": "rmbmoney",
"n": 20000 "n": 200
} }
], ],
"tq": [ "tq": [
{ {
"a": "item", "a": "item",
"t": "4", "t": "4",
"n": 5 "n": 10
} }
] ]
}, },
{ {
"type": "dayjijin", "type": "dayjijin",
"total": 75, "total": 70,
"pt": [ "pt": [
{ {
"a": "item", "a": "attr",
"t": "2", "t": "rmbmoney",
"n": 300 "n": 200
} }
], ],
"tq": [ "tq": [
{ {
"a": "item", "a": "item",
"t": "2", "t": "4",
"n": 2000 "n": 10
}
]
},
{
"type": "dayjijin",
"total": 80,
"pt": [
{
"a": "attr",
"t": "rmbmoney",
"n": 200
}
],
"tq": [
{
"a": "item",
"t": "4",
"n": 10
} }
] ]
}, },
@ -365,34 +401,52 @@
"total": 90, "total": 90,
"pt": [ "pt": [
{ {
"a": "item", "a": "attr",
"t": "23", "t": "rmbmoney",
"n": 20000 "n": 200
} }
], ],
"tq": [ "tq": [
{ {
"a": "attr", "a": "item",
"t": "rmbmoney", "t": "4",
"n": 888 "n": 10
} }
] ]
}, },
{ {
"type": "dayjijin", "type": "dayjijin",
"total": 105, "total": 100,
"pt": [ "pt": [
{ {
"a": "item", "a": "attr",
"t": "2", "t": "rmbmoney",
"n": 300 "n": 200
} }
], ],
"tq": [ "tq": [
{ {
"a": "item", "a": "item",
"t": "615", "t": "4",
"n": 1 "n": 10
}
]
},
{
"type": "dayjijin",
"total": 110,
"pt": [
{
"a": "attr",
"t": "rmbmoney",
"n": 200
}
],
"tq": [
{
"a": "item",
"t": "4",
"n": 10
} }
] ]
}, },
@ -401,106 +455,52 @@
"total": 120, "total": 120,
"pt": [ "pt": [
{ {
"a": "item", "a": "attr",
"t": "23", "t": "rmbmoney",
"n": 20000 "n": 200
} }
], ],
"tq": [ "tq": [
{ {
"a": "item", "a": "item",
"t": "4", "t": "4",
"n": 5 "n": 10
} }
] ]
}, },
{ {
"type": "dayjijin", "type": "dayjijin",
"total": 135, "total": 130,
"pt": [ "pt": [
{
"a": "item",
"t": "2",
"n": 400
}
],
"tq": [
{
"a": "item",
"t": "2",
"n": 2000
}
]
},
{
"type": "dayjijin",
"total": 150,
"pt": [
{
"a": "item",
"t": "23",
"n": 20000
}
],
"tq": [
{ {
"a": "attr", "a": "attr",
"t": "rmbmoney", "t": "rmbmoney",
"n": 888 "n": 200
}
]
},
{
"type": "dayjijin",
"total": 165,
"pt": [
{
"a": "item",
"t": "2",
"n": 400
}
],
"tq": [
{
"a": "item",
"t": "615",
"n": 1
}
]
},
{
"type": "dayjijin",
"total": 180,
"pt": [
{
"a": "item",
"t": "23",
"n": 20000
} }
], ],
"tq": [ "tq": [
{ {
"a": "item", "a": "item",
"t": "4", "t": "4",
"n": 5 "n": 10
} }
] ]
}, },
{ {
"type": "dayjijin", "type": "dayjijin",
"total": 200, "total": 140,
"pt": [ "pt": [
{ {
"a": "item", "a": "attr",
"t": "2", "t": "rmbmoney",
"n": 500 "n": 200
} }
], ],
"tq": [ "tq": [
{ {
"a": "attr", "a": "item",
"t": "rmbmoney", "t": "4",
"n": 1888 "n": 10
} }
] ]
} }

View File

@ -10,7 +10,13 @@
2 2
], ],
"content": "kfcb_des_1", "content": "kfcb_des_1",
"text": "kfcb_text_1" "text": "kfcb_text_1",
"payIds": [
"kfcb_libao_1",
"kfcb_libao_2",
"kfcb_libao_3",
"kfcb_libao_7"
]
}, },
"2": { "2": {
"id": 2, "id": 2,
@ -23,7 +29,12 @@
4 4
], ],
"content": "kfcb_des_2", "content": "kfcb_des_2",
"text": "kfcb_text_2" "text": "kfcb_text_2",
"payIds": [
"kfcb_libao_4",
"kfcb_libao_5",
"kfcb_libao_6"
]
}, },
"3": { "3": {
"id": 3, "id": 3,
@ -36,7 +47,11 @@
6 6
], ],
"content": "kfcb_des_3", "content": "kfcb_des_3",
"text": "kfcb_text_3" "text": "kfcb_text_3",
"payIds": [
"kfcb_libao_1",
"kfcb_libao_2"
]
}, },
"4": { "4": {
"id": 4, "id": 4,
@ -49,7 +64,11 @@
8 8
], ],
"content": "kfcb_des_4", "content": "kfcb_des_4",
"text": "kfcb_text_4" "text": "kfcb_text_4",
"payIds": [
"kfcb_libao_2",
"kfcb_libao_3"
]
}, },
"5": { "5": {
"id": 5, "id": 5,
@ -62,7 +81,12 @@
10 10
], ],
"content": "kfcb_des_5", "content": "kfcb_des_5",
"text": "kfcb_text_5" "text": "kfcb_text_5",
"payIds": [
"kfcb_libao_1",
"kfcb_libao_2",
"kfcb_libao_3"
]
}, },
"6": { "6": {
"id": 6, "id": 6,
@ -75,7 +99,12 @@
12 12
], ],
"content": "kfcb_des_6", "content": "kfcb_des_6",
"text": "kfcb_text_6" "text": "kfcb_text_6",
"payIds": [
"kfcb_libao_1",
"kfcb_libao_2",
"kfcb_libao_3"
]
}, },
"7": { "7": {
"id": 7, "id": 7,
@ -88,6 +117,11 @@
14 14
], ],
"content": "kfcb_des_7", "content": "kfcb_des_7",
"text": "kfcb_text_7" "text": "kfcb_text_7",
"payIds": [
"kfcb_libao_1",
"kfcb_libao_2",
"kfcb_libao_3"
]
} }
} }

View File

@ -1313,5 +1313,31 @@
"display": { "display": {
"lv": 15 "lv": 15
} }
},
"shengdanhuodong": {
"name": "shengdanhuodong",
"undefined": "圣诞活动",
"and": {
"lv": 15
},
"or": {},
"time": 0,
"tips": "openCond_tips_96",
"display": {
"lv": 15
}
},
"yuandanhuodong": {
"name": "yuandanhuodong",
"undefined": "元旦活动",
"and": {
"lv": 15
},
"or": {},
"time": 0,
"tips": "openCond_tips_96",
"display": {
"lv": 15
}
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@
day: 7, day: 7,
title: 'title_email_zhongshenka_day7', title: 'title_email_zhongshenka_day7',
content: 'intr_email_zhongshenka_day7', content: 'intr_email_zhongshenka_day7',
prize: [{ a: 'item', t: '4', n: 10 },{ a: 'item', t: '9', n: 200 }] prize: [{ a: 'item', t: '4', n: 10 },{ a: 'item', t: '1', n: 5000000 }]
} }
], ],
chaozhiyueka: [ chaozhiyueka: [

View File

@ -118,5 +118,22 @@
}, },
"colour": 3, "colour": 3,
"ani": "" "ani": ""
},
"8": {
"id": 8,
"name": "playerChatFrame_name_8",
"img": "lt_dhk14",
"cond": [
"time",
-1
],
"undefined": "圣诞庆典获得",
"intr": "playerChatFrame_des_8",
"sort": 8,
"buff": {
"defpro": 0.01
},
"colour": 3,
"ani": ""
} }
} }

View File

@ -26,7 +26,7 @@
"intr": "intr_playerinfo_intr_2", "intr": "intr_playerinfo_intr_2",
"sort": 2, "sort": 2,
"buff": {}, "buff": {},
"colour": 2, "colour": 1,
"ani": "" "ani": ""
}, },
"1001": { "1001": {

View File

@ -208,7 +208,7 @@
"13": { "13": {
"id": 13, "id": 13,
"name": "playerheadFrame_name_13", "name": "playerheadFrame_name_13",
"undefined": "购买战令获得", "undefined": "购买悬赏令获得,解锁后伤害加成+2%限时30天",
"img": "txk_002", "img": "txk_002",
"cond": [ "cond": [
"time", "time",
@ -216,14 +216,16 @@
], ],
"intr": "playerheadFrame_des_13", "intr": "playerheadFrame_des_13",
"sort": 13, "sort": 13,
"buff": {}, "buff": {
"dpspro": 0.02
},
"colour": 4, "colour": 4,
"ani": "" "ani": ""
}, },
"14": { "14": {
"id": 14, "id": 14,
"name": "playerheadFrame_name_14", "name": "playerheadFrame_name_14",
"undefined": "铁笼死斗晋级八强获得", "undefined": "铁笼死斗晋级八强获得,解锁后防御加成+1%限时7天",
"img": "txk_003", "img": "txk_003",
"cond": [ "cond": [
"time", "time",
@ -231,14 +233,16 @@
], ],
"intr": "playerheadFrame_des_14", "intr": "playerheadFrame_des_14",
"sort": 14, "sort": 14,
"buff": {}, "buff": {
"defpro": 0.01
},
"colour": 4, "colour": 4,
"ani": "" "ani": ""
}, },
"15": { "15": {
"id": 15, "id": 15,
"name": "playerheadFrame_name_15", "name": "playerheadFrame_name_15",
"undefined": "购买名望特权礼包获得", "undefined": "购买名望特权礼包获得,解锁后伤害加成+1%",
"img": "txk_020", "img": "txk_020",
"cond": [ "cond": [
"time", "time",
@ -255,7 +259,7 @@
"16": { "16": {
"id": 16, "id": 16,
"name": "playerheadFrame_name_16", "name": "playerheadFrame_name_16",
"undefined": "开服冲榜活动获得", "undefined": "开服冲榜活动获得,解锁后攻击加成+1%",
"img": "txk_017", "img": "txk_017",
"cond": [ "cond": [
"time", "time",
@ -272,7 +276,7 @@
"17": { "17": {
"id": 17, "id": 17,
"name": "playerheadFrame_name_17", "name": "playerheadFrame_name_17",
"undefined": "开服冲榜活动获得", "undefined": "开服冲榜活动获得,解锁后防御加成+1%",
"img": "txk_011", "img": "txk_011",
"cond": [ "cond": [
"time", "time",
@ -289,7 +293,7 @@
"18": { "18": {
"id": 18, "id": 18,
"name": "playerheadFrame_name_18", "name": "playerheadFrame_name_18",
"undefined": "开服冲榜活动获得", "undefined": "开服冲榜活动获得,解锁后生命加成+1%",
"img": "txk_005", "img": "txk_005",
"cond": [ "cond": [
"time", "time",
@ -306,7 +310,7 @@
"19": { "19": {
"id": 19, "id": 19,
"name": "playerheadFrame_name_19", "name": "playerheadFrame_name_19",
"undefined": "开服冲榜活动获得", "undefined": "开服冲榜活动获得,解锁后攻击加成+1%",
"img": "txk_004", "img": "txk_004",
"cond": [ "cond": [
"time", "time",
@ -323,7 +327,7 @@
"20": { "20": {
"id": 20, "id": 20,
"name": "playerheadFrame_name_20", "name": "playerheadFrame_name_20",
"undefined": "开服冲榜活动获得", "undefined": "开服冲榜活动获得,解锁后防御加成+1%",
"img": "txk_024", "img": "txk_024",
"cond": [ "cond": [
"time", "time",
@ -340,7 +344,7 @@
"21": { "21": {
"id": 21, "id": 21,
"name": "playerheadFrame_name_21", "name": "playerheadFrame_name_21",
"undefined": "开服冲榜活动获得", "undefined": "开服冲榜活动获得,解锁后生命加成+1%",
"img": "txk_013", "img": "txk_013",
"cond": [ "cond": [
"time", "time",
@ -357,7 +361,7 @@
"22": { "22": {
"id": 22, "id": 22,
"name": "playerheadFrame_name_22", "name": "playerheadFrame_name_22",
"undefined": "开服冲榜活动获得", "undefined": "开服冲榜活动获得,解锁后伤害加成+1%",
"img": "txk_021", "img": "txk_021",
"cond": [ "cond": [
"time", "time",
@ -370,5 +374,22 @@
}, },
"colour": 4, "colour": 4,
"ani": "" "ani": ""
},
"23": {
"id": 23,
"name": "playerheadFrame_name_23",
"undefined": "圣诞庆典活动获得,解锁后生命加成+1%",
"img": "txk_028",
"cond": [
"time",
-1
],
"intr": "playerheadFrame_des_23",
"sort": 23,
"buff": {
"hppro": 0.01
},
"colour": 4,
"ani": ""
} }
} }

View File

@ -33,6 +33,44 @@
"colour": 1, "colour": 1,
"mwSpine": "ani_mingwangnv", "mwSpine": "ani_mingwangnv",
"fireHead": "img_lih1" "fireHead": "img_lih1"
},
"3": {
"type": 1,
"id": 3,
"name": "playerModel_name_3",
"head": 100011,
"img": 100011,
"cond": [
"time",
-1
],
"intr": "playerModel_des_3",
"sort": 3,
"buff": {
"defpro": 0.02
},
"colour": 5,
"mwSpine": "ani_mingwangnan",
"fireHead": "img_lih21"
},
"4": {
"type": 1,
"id": 4,
"name": "playerModel_name_4",
"head": 100021,
"img": 100021,
"cond": [
"time",
-1
],
"intr": "playerModel_des_4",
"sort": 4,
"buff": {
"atkpro": 0.02
},
"colour": 5,
"mwSpine": "ani_mingwangnv",
"fireHead": "img_lih11"
} }
} }
} }

View File

@ -1,46 +1,19 @@
{ {
//每日充值要求
dayPayNeed: 6,
data: [
{
time: 1296000,
tasks: [ tasks: [
{ total: 1, prize: [{a: 'attr', t: 'jinbi', n: 20000},{a: 'item', t: '1', n: 100000},{a: 'item', t: '4', n: 5}] }, { day: 1, payid:"jitianlibao_1" },
{ total: 2, prize: [{a: 'attr', t: 'jinbi', n: 40000},{a: 'item', t: '1', n: 200000},{a: 'item', t: '12', n: 200}] }, { day: 2, payid:"jitianlibao_2" },
{ total: 3, prize: [{a: 'attr', t: 'jinbi', n: 60000},{a: 'item', t: '1', n: 300000},{a: 'item', t: '4', n: 10}] }, { day: 3, payid:"jitianlibao_3" },
{ total: 4, prize: [{a: 'attr', t: 'jinbi', n: 80000},{a: 'item', t: '1', n: 400000},{a: 'item', t: '12', n: 200}] }, { day: 4, payid:"jitianlibao_4" },
{ total: 5, prize: [{a: 'attr', t: 'jinbi', n: 100000},{a: 'item', t: '1', n: 500000},{a: 'item', t: '12', n: 200}] }, { day: 5, payid:"jitianlibao_5" },
{ total: 6, prize: [{a: 'attr', t: 'jinbi', n: 120000},{a: 'item', t: '1', n: 600000},{a: 'item', t: '607', n: 20}] }, { day: 6, payid:"jitianlibao_6" },
{ total: 7, prize: [{a: 'attr', t: 'jinbi', n: 140000},{a: 'item', t: '1', n: 700000},{a: 'item', t: '12', n: 200}] }, { day: 7, payid:"jitianlibao_7" },
{ total: 8, prize: [{a: 'attr', t: 'jinbi', n: 160000},{a: 'item', t: '1', n: 800000},{a: 'item', t: '12', n: 200}] }, { day: 8, payid:"jitianlibao_8" },
{ total: 9, prize: [{a: 'attr', t: 'jinbi', n: 180000},{a: 'item', t: '1', n: 900000},{a: 'item', t: '4', n: 10}] }, { day: 9, payid:"jitianlibao_9" },
{ total: 10, prize: [{a: 'attr', t: 'jinbi', n: 200000},{a: 'item', t: '1', n: 1000000},{a: 'item', t: '12', n: 200}] }, { day: 10, payid:"jitianlibao_10" },
{ total: 11, prize: [{a: 'attr', t: 'jinbi', n: 220000},{a: 'item', t: '1', n: 1100000},{a: 'item', t: '12', n: 200}] }, { day: 11, payid:"jitianlibao_11" },
{ total: 12, prize: [{a: 'attr', t: 'jinbi', n: 240000},{a: 'item', t: '1', n: 1200000},{a: 'item', t: '4', n: 10}] }, { day: 12, payid:"jitianlibao_12" },
{ total: 13, prize: [{a: 'attr', t: 'jinbi', n: 260000},{a: 'item', t: '1', n: 1300000},{a: 'item', t: '12', n: 200}] }, { day: 13, payid:"jitianlibao_13" },
{ total: 14, prize: [{a: 'attr', t: 'jinbi', n: 280000},{a: 'item', t: '1', n: 1400000},{a: 'item', t: '12', n: 200}] }, { day: 14, payid:"jitianlibao_14" },
{ total: 15, prize: [{a: 'attr', t: 'jinbi', n: 300000},{a: 'item', t: '1', n: 1500000},{a: 'item', t: '600', n: 20}] } { day: 15, payid:"jitianlibao_15" }
]
},
{
time: 1296000,
tasks: [
{ total: 1, prize: [{a: 'attr', t: 'jinbi', n: 20000},{a: 'item', t: '1', n: 100000},{a: 'item', t: '4', n: 5}] },
{ total: 2, prize: [{a: 'attr', t: 'jinbi', n: 40000},{a: 'item', t: '1', n: 200000},{a: 'item', t: '12', n: 200}] },
{ total: 3, prize: [{a: 'attr', t: 'jinbi', n: 60000},{a: 'item', t: '1', n: 300000},{a: 'item', t: '4', n: 10}] },
{ total: 4, prize: [{a: 'attr', t: 'jinbi', n: 80000},{a: 'item', t: '1', n: 400000},{a: 'item', t: '12', n: 200}] },
{ total: 5, prize: [{a: 'attr', t: 'jinbi', n: 100000},{a: 'item', t: '1', n: 500000},{a: 'item', t: '12', n: 200}] },
{ total: 6, prize: [{a: 'attr', t: 'jinbi', n: 120000},{a: 'item', t: '1', n: 600000},{a: 'item', t: '607', n: 20}] },
{ total: 7, prize: [{a: 'attr', t: 'jinbi', n: 140000},{a: 'item', t: '1', n: 700000},{a: 'item', t: '12', n: 200}] },
{ total: 8, prize: [{a: 'attr', t: 'jinbi', n: 160000},{a: 'item', t: '1', n: 800000},{a: 'item', t: '12', n: 200}] },
{ total: 9, prize: [{a: 'attr', t: 'jinbi', n: 180000},{a: 'item', t: '1', n: 900000},{a: 'item', t: '4', n: 10}] },
{ total: 10, prize: [{a: 'attr', t: 'jinbi', n: 200000},{a: 'item', t: '1', n: 1000000},{a: 'item', t: '12', n: 200}] },
{ total: 11, prize: [{a: 'attr', t: 'jinbi', n: 220000},{a: 'item', t: '1', n: 1100000},{a: 'item', t: '12', n: 200}] },
{ total: 12, prize: [{a: 'attr', t: 'jinbi', n: 240000},{a: 'item', t: '1', n: 1200000},{a: 'item', t: '4', n: 10}] },
{ total: 13, prize: [{a: 'attr', t: 'jinbi', n: 260000},{a: 'item', t: '1', n: 1300000},{a: 'item', t: '12', n: 200}] },
{ total: 14, prize: [{a: 'attr', t: 'jinbi', n: 280000},{a: 'item', t: '1', n: 1400000},{a: 'item', t: '12', n: 200}] },
{ total: 15, prize: [{a: 'attr', t: 'jinbi', n: 300000},{a: 'item', t: '1', n: 1500000},{a: 'item', t: '600', n: 20}] }
]
}
] ]
} }

View File

@ -495,5 +495,36 @@
"vip": [], "vip": [],
"npcImg": 3011, "npcImg": 3011,
"npcText": "intr_shopCom_text_10" "npcText": "intr_shopCom_text_10"
},
"13": {
"id": 13,
"type": 12,
"name": "wsw_wz_dhsd",
"undefined": "兑换商店",
"openCond": [
"lv",
15
],
"autoRefreshTime": 0,
"recoilRefreshNeed": [],
"recoilRefreshNum": 0,
"freeRefreshInterval": 0,
"freeRefreshNum": 0,
"shopItems": [
4001
],
"showItem": [
{
"a": "attr",
"t": "jinbi",
"n": 0
},
{
"a": "attr",
"t": "rmbmoney",
"n": 0
}
],
"vip": []
} }
} }

View File

@ -3918,6 +3918,31 @@
9999 9999
], ],
"vipAddbuyNum": [] "vipAddbuyNum": []
},
{
"id": 4001,
"a": "item",
"t": 4,
"n": 10,
"p": 1,
"colour": 4,
"buyNum": -1,
"openDay": 1,
"buyNeed": [
{
"a": "item",
"t": "15",
"n": 2800
}
],
"sale": 10,
"needVip": 0,
"needZCCG": 0,
"lv": [
1,
9999
],
"vipAddbuyNum": []
} }
], ],
"4002": [ "4002": [

View File

@ -1,8 +1,54 @@
{ {
"shouchong1": { "shouchong1": {
"paynum": 6, "paynum": 6,
"payid":"shouchong_1",
"cartoon": { "cartoon": {
"hero": 5001 "hero": 4013
},
"prize": [
[
{
"a": "hero",
"t": "4013",
"n": 1
},
{
"a": "attr",
"t": "rmbmoney",
"n": 120
}
],
[
{
"a": "item",
"t": "4",
"n": 10
},
{
"a": "item",
"t": "1",
"n": 100000
}
],
[
{
"a": "item",
"t": "12",
"n": 100
},
{
"a": "attr",
"t": "jinbi",
"n": 100000
}
]
]
},
"shouchong2": {
"paynum": 30,
"payid":"shouchong_2",
"cartoon": {
"img": 5001
}, },
"prize": [ "prize": [
[ [
@ -13,42 +59,10 @@
}, },
{ {
"a": "attr", "a": "attr",
"t": "jinbi", "t": "rmbmoney",
"n": 100000 "n": 600
} }
], ],
[
{
"a": "item",
"t": "12",
"n": 200
},
{
"a": "attr",
"t": "jinbi",
"n": 200000
}
],
[
{
"a": "item",
"t": "12",
"n": 200
},
{
"a": "attr",
"t": "jinbi",
"n": 300000
}
]
]
},
"shouchong2": {
"paynum": 30,
"cartoon": {
"img": 5001
},
"prize": [
[ [
{ {
"a": "equip", "a": "equip",
@ -61,18 +75,6 @@
"n": 1 "n": 1
} }
], ],
[
{
"a": "equip",
"t": "3009",
"n": 1
},
{
"a": "item",
"t": "2",
"n": 1000
}
],
[ [
{ {
"a": "equip", "a": "equip",
@ -80,53 +82,54 @@
"n": 1 "n": 1
}, },
{ {
"a": "item", "a": "equip",
"t": "2", "t": "3009",
"n": 1000 "n": 1
} }
] ]
] ]
}, },
"shouchong3": { "shouchong3": {
"paynum": 98, "paynum": 98,
"payid":"shouchong_3",
"cartoon": { "cartoon": {
"hero": 5002 "hero": 5001
}, },
"prize": [ "prize": [
[ [
{ {
"a": "hero", "a": "hero",
"t": "5002", "t": "5001",
"n": 1 "n": 1
}, },
{
"a": "attr",
"t": "rmbmoney",
"n": 1960
}
],
[
{
"a": "item",
"t": "12",
"n": 3000
},
{
"a": "item",
"t": "1",
"n": 3000000
}
],
[
{ {
"a": "item", "a": "item",
"t": "4", "t": "4",
"n": 10 "n": 50
}
],
[
{
"a": "equip",
"t": "1010",
"n": 1
}, },
{ {
"a": "item", "a": "attr",
"t": "2", "t": "jinbi",
"n": 2000 "n": 5000000
}
],
[
{
"a": "equip",
"t": "3010",
"n": 1
},
{
"a": "item",
"t": "2",
"n": 2000
} }
] ]
] ]

View File

@ -1011,7 +1011,7 @@
"mofa": 0, "mofa": 0,
"islong": 0 "islong": 0
}, },
"describe": "普通攻击替换为随机攻击3个目标造成基础伤害95%的物理伤害" "describe": "普通攻击替换为随机攻击2个目标造成基础伤害95%的物理伤害"
}, },
"4002201": { "4002201": {
"skillid": 4002201, "skillid": 4002201,
@ -1029,7 +1029,7 @@
"mofa": 0, "mofa": 0,
"islong": 0 "islong": 0
}, },
"describe": "普通攻击替换为随机攻击3个目标造成基础伤害114%的物理伤害" "describe": "普通攻击替换为随机攻击2个目标造成基础伤害114%的物理伤害"
}, },
"4003200": { "4003200": {
"skillid": 4003200, "skillid": 4003200,
@ -1202,7 +1202,7 @@
"order": "rand", "order": "rand",
"limit": 6, "limit": 6,
"data": { "data": {
"pro": 0.11 "pro": 0.13
}, },
"chkdata": {}, "chkdata": {},
"ext": {}, "ext": {},
@ -1217,7 +1217,7 @@
"order": "rand", "order": "rand",
"limit": 6, "limit": 6,
"data": { "data": {
"pro": 0.11 "pro": 0.13
}, },
"chkdata": {}, "chkdata": {},
"ext": {}, "ext": {},

View File

@ -739,7 +739,7 @@
"sxleixing": "zhongdu", "sxleixing": "zhongdu",
"buff_type": 2, "buff_type": 2,
"xiaoguocanshu": { "xiaoguocanshu": {
"pro": 0.15, "pro": 0.18,
"type": "hp" "type": "hp"
}, },
"round": 2, "round": 2,
@ -759,7 +759,7 @@
"sxleixing": "zhongdu", "sxleixing": "zhongdu",
"buff_type": 2, "buff_type": 2,
"xiaoguocanshu": { "xiaoguocanshu": {
"pro": 0.15, "pro": 0.18,
"type": "hp" "type": "hp"
}, },
"round": 2, "round": 2,

View File

@ -1202,13 +1202,13 @@
"n": 100000 "n": 100000
} }
], ],
"pval": 2, "pval": 1,
"name": "intr_task_name_2007", "name": "intr_task_name_2007",
"intr": "intr_task_intr_2007", "intr": "intr_task_intr_2007",
"pretask": 2015, "pretask": 2015,
"followtask": 2017, "followtask": 2017,
"cond": [ "cond": [
1 2
], ],
"tiaozhuan": 67, "tiaozhuan": 67,
"order": 17, "order": 17,
@ -1467,13 +1467,13 @@
"n": 100000 "n": 100000
} }
], ],
"pval": 3, "pval": 1,
"name": "intr_task_name_2016", "name": "intr_task_name_2016",
"intr": "intr_task_intr_2016", "intr": "intr_task_intr_2016",
"pretask": 2022, "pretask": 2022,
"followtask": 2024, "followtask": 2024,
"cond": [ "cond": [
1 3
], ],
"tiaozhuan": 67, "tiaozhuan": 67,
"order": 24, "order": 24,
@ -1619,13 +1619,13 @@
"n": 200000 "n": 200000
} }
], ],
"pval": 4, "pval": 2,
"name": "intr_task_name_2016", "name": "intr_task_name_2016",
"intr": "intr_task_intr_2016", "intr": "intr_task_intr_2016",
"pretask": 2026, "pretask": 2026,
"followtask": 2028, "followtask": 2028,
"cond": [ "cond": [
1 2
], ],
"tiaozhuan": 67, "tiaozhuan": 67,
"order": 28, "order": 28,
@ -3016,13 +3016,13 @@
"n": 100000 "n": 100000
} }
], ],
"pval": 3, "pval": 2,
"name": "intr_task_name_2016", "name": "intr_task_name_2016",
"intr": "intr_task_intr_2016", "intr": "intr_task_intr_2016",
"pretask": 2064, "pretask": 2064,
"followtask": 2066, "followtask": 2066,
"cond": [ "cond": [
2 3
], ],
"tiaozhuan": 67, "tiaozhuan": 67,
"order": 66, "order": 66,
@ -3350,13 +3350,13 @@
"n": 100000 "n": 100000
} }
], ],
"pval": 4, "pval": 3,
"name": "intr_task_name_2016", "name": "intr_task_name_2016",
"intr": "intr_task_intr_2016", "intr": "intr_task_intr_2016",
"pretask": 2073, "pretask": 2073,
"followtask": 2075, "followtask": 2075,
"cond": [ "cond": [
2 3
], ],
"tiaozhuan": 67, "tiaozhuan": 67,
"order": 75, "order": 75,

257
src/json/tuisonglibao.json Normal file
View File

@ -0,0 +1,257 @@
{
"1": {
"id": 1,
"type": 1,
"num": [
5
],
"payId": [
"guanqialibao_1",
"guanqialibao_2",
"guanqialibao_3"
],
"time": 3600,
"displayCD": 7200,
"scale": 500
},
"2": {
"id": 2,
"type": 1,
"num": [
10
],
"payId": [
"guanqialibao_1",
"guanqialibao_2"
],
"time": 3600,
"displayCD": 7200,
"scale": 501
},
"3": {
"id": 3,
"type": 1,
"num": [
20
],
"payId": [
"guanqialibao_1",
"guanqialibao_3"
],
"time": 3600,
"displayCD": 7200,
"scale": 502
},
"4": {
"id": 4,
"type": 2,
"num": [
{
"a": "item",
"t": "1"
}
],
"payId": [
"daojulibao_1",
"daojulibao_2"
],
"time": 3600,
"displayCD": 7200,
"scale": 503
},
"5": {
"id": 5,
"type": 2,
"num": [
{
"a": "item",
"t": "2"
}
],
"payId": [
"daojulibao_1",
"daojulibao_3"
],
"time": 3600,
"displayCD": 7200,
"scale": 504
},
"6": {
"id": 6,
"type": 2,
"num": [
{
"a": "attr",
"t": "jinbi"
}
],
"payId": [
"daojulibao_1",
"daojulibao_2",
"daojulibao_3"
],
"time": 3600,
"displayCD": 7200,
"scale": 505
},
"7": {
"id": 7,
"type": 3,
"num": [
1
],
"payId": [
"zhanbailibao_1",
"zhanbailibao_2",
"zhanbailibao_3"
],
"time": 3600,
"displayCD": 7200,
"scale": 506
},
"8": {
"id": 8,
"type": 4,
"num": [
3
],
"payId": [
"choukalibao_1",
"choukalibao_2",
"choukalibao_3"
],
"time": 3600,
"displayCD": 7200,
"scale": 507
},
"9": {
"id": 9,
"type": 5,
"num": [
31
],
"payId": [
"lv30"
],
"time": 3600,
"displayCD": 3600,
"scale": 3300
},
"10": {
"id": 10,
"type": 5,
"num": [
45
],
"payId": [
"lv40"
],
"time": 3600,
"displayCD": 3600,
"scale": 3300
},
"11": {
"id": 11,
"type": 5,
"num": [
50
],
"payId": [
"lv55"
],
"time": 3600,
"displayCD": 3600,
"scale": 2000
},
"12": {
"id": 12,
"type": 5,
"num": [
53
],
"payId": [
"lv58"
],
"time": 3600,
"displayCD": 3600,
"scale": 2000
},
"13": {
"id": 13,
"type": 5,
"num": [
56
],
"payId": [
"lv60"
],
"time": 3600,
"displayCD": 3600,
"scale": 2000
},
"14": {
"id": 14,
"type": 5,
"num": [
60
],
"payId": [
"lv63"
],
"time": 3600,
"displayCD": 3600,
"scale": 2000
},
"15": {
"id": 15,
"type": 5,
"num": [
63
],
"payId": [
"lv66"
],
"time": 3600,
"displayCD": 3600,
"scale": 2000
},
"16": {
"id": 16,
"type": 5,
"num": [
66
],
"payId": [
"lv69"
],
"time": 3600,
"displayCD": 3600,
"scale": 1800
},
"17": {
"id": 17,
"type": 5,
"num": [
68
],
"payId": [
"lv72"
],
"time": 3600,
"displayCD": 3600,
"scale": 1800
},
"18": {
"id": 18,
"type": 5,
"num": [
70
],
"payId": [
"lv75"
],
"time": 3600,
"displayCD": 3600,
"scale": 1800
}
}

View File

@ -2,35 +2,35 @@
{ {
payId: '128jijin', payId: '128jijin',
prize: [ prize: [
{a:'item',t:'4',n:50},
{a:'item',t:'617',n:1},
{a:'attr',t:'rmbmoney',n:1000},
{a:'item',t:'9',n:1000},
{a:'attr',t:'rmbmoney',n:300},
{a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'9',n:1000},
{a:'item',t:'4',n:10},
{a:'attr',t:'rmbmoney',n:500},
{a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'9',n:1000},
{a:'item',t:'4',n:10}, {a:'item',t:'4',n:10},
{a:'attr',t:'rmbmoney',n:300}, {a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'9',n:1000},
{a:'attr',t:'rmbmoney',n:300},
{a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'9',n:3000},
{a:'attr',t:'rmbmoney',n:300},
{a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'9',n:3000},
{a:'attr',t:'rmbmoney',n:500},
{a:'attr',t:'rmbmoney',n:300}, {a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'9',n:2000}, {a:'item',t:'9',n:2000},
{a:'attr',t:'rmbmoney',n:300}, {a:'attr',t:'rmbmoney',n:300},
{a:'attr',t:'rmbmoney',n:300}, {a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'609',n:1},
{a:'item',t:'4',n:10},
{a:'attr',t:'rmbmoney',n:500},
{a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'18',n:300},
{a:'attr',t:'rmbmoney',n:300},
{a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'6',n:20},
{a:'attr',t:'rmbmoney',n:300},
{a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'9',n:3000}, {a:'item',t:'9',n:3000},
{a:'attr',t:'rmbmoney',n:300}, {a:'attr',t:'rmbmoney',n:300},
{a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'4',n:10},
{a:'attr',t:'rmbmoney',n:500}, {a:'attr',t:'rmbmoney',n:500},
{a:'attr',t:'rmbmoney',n:300}, {a:'attr',t:'rmbmoney',n:500},
{a:'item',t:'20',n:200},
{a:'attr',t:'rmbmoney',n:300},
{a:'attr',t:'rmbmoney',n:300},
{a:'item',t:'9',n:3000},
{a:'attr',t:'rmbmoney',n:300},
{a:'attr',t:'rmbmoney',n:300},
{a:'attr',t:'rmbmoney',n:1000},
{a:'item',t:'628',n:1}, {a:'item',t:'628',n:1},
], ],
//奖励总价值X钻 //奖励总价值X钻
@ -43,36 +43,36 @@
{ {
payId: '328jijin', payId: '328jijin',
prize: [ prize: [
{a:'item',t:'4',n:30}, {a:'item',t:'611',n:1},
{a:'attr',t:'rmbmoney',n:800}, {a:'item',t:'617',n:2},
{a:'attr',t:'rmbmoney',n:800}, {a:'attr',t:'rmbmoney',n:2000},
{a:'item',t:'10',n:300},
{a:'attr',t:'rmbmoney',n:800},
{a:'attr',t:'rmbmoney',n:800},
{a:'item',t:'628',n:1},
{a:'item',t:'4',n:20},
{a:'attr',t:'rmbmoney',n:800},
{a:'attr',t:'rmbmoney',n:800},
{a:'item',t:'628',n:1},
{a:'attr',t:'rmbmoney',n:800},
{a:'attr',t:'rmbmoney',n:800},
{a:'item',t:'628',n:1},
{a:'attr',t:'rmbmoney',n:800},
{a:'attr',t:'rmbmoney',n:800},
{a:'item',t:'628',n:1},
{a:'attr',t:'rmbmoney',n:800},
{a:'attr',t:'rmbmoney',n:800},
{a:'item',t:'4',n:20},
{a:'attr',t:'rmbmoney',n:800},
{a:'attr',t:'rmbmoney',n:800},
{a:'item',t:'10',n:400}, {a:'item',t:'10',n:400},
{a:'attr',t:'rmbmoney',n:800}, {a:'attr',t:'rmbmoney',n:2000},
{a:'attr',t:'rmbmoney',n:800}, {a:'attr',t:'rmbmoney',n:2000},
{a:'item',t:'10',n:400},
{a:'item',t:'4',n:20},
{a:'attr',t:'rmbmoney',n:2000},
{a:'attr',t:'rmbmoney',n:2000},
{a:'item',t:'10',n:400},
{a:'attr',t:'rmbmoney',n:2000},
{a:'attr',t:'rmbmoney',n:2000},
{a:'item',t:'10',n:400},
{a:'attr',t:'rmbmoney',n:2000},
{a:'attr',t:'rmbmoney',n:2000},
{a:'item',t:'10',n:400},
{a:'attr',t:'rmbmoney',n:2000},
{a:'attr',t:'rmbmoney',n:2000},
{a:'item',t:'4',n:20},
{a:'attr',t:'rmbmoney',n:2000},
{a:'attr',t:'rmbmoney',n:2000},
{a:'item',t:'10',n:400},
{a:'attr',t:'rmbmoney',n:2000},
{a:'attr',t:'rmbmoney',n:2000},
{a:'item',t:'10',n:400},
{a:'attr',t:'rmbmoney',n:2000},
{a:'attr',t:'rmbmoney',n:2000},
{a:'attr',t:'rmbmoney',n:2000},
{a:'item',t:'10',n:400}, {a:'item',t:'10',n:400},
{a:'attr',t:'rmbmoney',n:800},
{a:'attr',t:'rmbmoney',n:800},
{a:'attr',t:'rmbmoney',n:1500},
{a:'item',t:'617',n:1},
], ],
//奖励总价值X钻 //奖励总价值X钻
num1: 70080, num1: 70080,

View File

@ -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 }, "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 } } 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 } }

View File

@ -13,7 +13,7 @@ export default {
/**跨服 ws url */ /**跨服 ws url */
corssWsUrl: "ws://10.0.1.20:10003", corssWsUrl: "ws://10.0.1.20:10003",
/**服务器id */ /**服务器id */
serverId: 0, serverId: 1001,
/**redis url */ /**redis url */
redisUrl: 'redis://:lyMaple525458@10.0.1.20:6379/0', redisUrl: 'redis://:lyMaple525458@10.0.1.20:6379/0',
/**mongodb url */ /**mongodb url */
@ -27,7 +27,7 @@ export default {
/**服务器时间 */ /**服务器时间 */
time: '', time: '',
/**开服时间 */ /**开服时间 */
openTime: '2022-10-10 1:0:0', openTime: '2023-12-11 1:0:0',
/**项目名称 */ /**项目名称 */
projectName: 'heijiao', projectName: 'heijiao',
/**加密key */ /**加密key */

View File

@ -26,6 +26,9 @@ export type eventType = {
shouchong: { shouchong: {
receive: k_v<number[]>; receive: k_v<number[]>;
}; };
shouchongzhigou: {
receive: k_v<number[]>;
};
kaifukuanghuan: Omit<ResOpen, 'day' | 'taskFinished'>; kaifukuanghuan: Omit<ResOpen, 'day' | 'taskFinished'>;
dayjijin: Omit<ResOpenJiJin, 'isPay' | 'finished'>; dayjijin: Omit<ResOpenJiJin, 'isPay' | 'finished'>;
dengjijijin: Omit<ResOpenJiJin, 'isPay' | 'finished'>; dengjijijin: Omit<ResOpenJiJin, 'isPay' | 'finished'>;

View File

@ -1,13 +0,0 @@
import {ObjectId} from "mongodb";
import {ResOpen} from "../shared/protocols/pushgift/PtlOpen";
export type Gift = {
id: string
uid: string
buy: number[]
ctime: number
passTime: number
ext_data: { [key: string]: any }
}
export type CollectionPushGift = Gift & { _id: ObjectId };

View File

@ -149,6 +149,12 @@ export class PayFun {
needVip: 0, needVip: 0,
front: {} front: {}
} }
} else if (payId == '136GiftAll') {
// 136礼包一键购买加入所有礼包奖励
conf = {
...conf,
prize: R.compose(R.flatten(), R.map(i => i.prize), R.filter(i => i.id.indexOf('136Gift') != -1), R.values())(G.gc.pay)
}
} }
return conf return conf
} }
@ -225,7 +231,7 @@ export class PayFun {
prize.push(...conf.prize) prize.push(...conf.prize)
} }
let isReplaceConf = await this.checkBuysAfterPay(uid, payId, conf, payArgs) let isReplaceConf = await this.checkBuysAfterPay(uid, payId, conf, payArgs, player)
if (isReplaceConf) { if (isReplaceConf) {
let prizePayId = `zuanshi_${conf.money}` let prizePayId = `zuanshi_${conf.money}`
payArgs.toPrizePayId = prizePayId payArgs.toPrizePayId = prizePayId
@ -270,7 +276,7 @@ export class PayFun {
} }
}); });
G.emit('PLAYER_PAY', player, payId, payArgs); G.emit('PLAYER_PAY', player, payId, payArgs, call);
G.emit("Class_task_116", 'Class_task_116', call, 1, 0); G.emit("Class_task_116", 'Class_task_116', call, 1, 0);
} }
@ -314,8 +320,9 @@ export class PayFun {
* @param payId * @param payId
* @param conf * @param conf
* @param payArgs * @param payArgs
* @param player
*/ */
static async checkBuysAfterPay(uid, payId, conf, payArgs) { static async checkBuysAfterPay(uid, payId, conf, payArgs, player) {
if (payId == 'G123SendGift') { if (payId == 'G123SendGift') {
let giftInfo = await G.mongodb.collection('giftLog').findOne({popup_id: payArgs.popup_id}); let giftInfo = await G.mongodb.collection('giftLog').findOne({popup_id: payArgs.popup_id});
if (giftInfo.purchaseLimitAmount && giftInfo.buyNumber >= giftInfo.purchaseLimitAmount && number(giftInfo.price) > 0) { if (giftInfo.purchaseLimitAmount && giftInfo.buyNumber >= giftInfo.purchaseLimitAmount && number(giftInfo.price) > 0) {
@ -327,6 +334,12 @@ export class PayFun {
buyLog = buyLog.filter(v => v.time >= PublicShared.getToDayZeroTime(G.time)); buyLog = buyLog.filter(v => v.time >= PublicShared.getToDayZeroTime(G.time));
} }
if (conf.buys > 0 && buyLog.length >= conf.buys) return true; if (conf.buys > 0 && buyLog.length >= conf.buys) return true;
//针对周末礼包的单独处理
if (payId.indexOf('wkdlibao') != -1) {
let call = this.getCall(player)
let conf = await zmlbGetConf(call, {payId})
if (buyLog.length && buyLog.length >= conf.buyNum) return true
}
} }
return false return false
} }
@ -376,10 +389,20 @@ export class PayFun {
if (conf.time != -1 && buyLog.slice(-1)[0]?.eTime > G.time && conf.buys == 0 && payId.indexOf('wkdlibao') == -1) { if (conf.time != -1 && buyLog.slice(-1)[0]?.eTime > G.time && conf.buys == 0 && payId.indexOf('wkdlibao') == -1) {
return G.server.sendMsgByUid(player.uid, 'msg_s2c/PayResult', {code: -2}); return G.server.sendMsgByUid(player.uid, 'msg_s2c/PayResult', {code: -2});
} }
if (payId.indexOf('136Gift') != -1 && payId != '136Gift1') { //针对每日礼包的单独处理
buyLog = await this.getPayLog(player.uid, '136Gift1'); let zeroTime = PublicShared.getToDayZeroTime(G.time)
if (buyLog.slice(-1)[0]?.eTime > G.time) return G.server.sendMsgByUid(player.uid, 'msg_s2c/PayResult', {code: -3}); if (payId.indexOf('136Gift') != -1 && payId != '136GiftAll') {
let buyLog136 = await this.getPayLog(player.uid, '136GiftAll');
buyLog136 = buyLog136.filter(v => v.time >= zeroTime);
if (buyLog136.length) return G.server.sendMsgByUid(player.uid, 'msg_s2c/PayResult', {code: -1});
} }
if (payId.indexOf('136Gift') != -1 && payId == '136GiftAll') {
let ids = R.compose(R.map(i => i.id), R.filter(i => i.id.indexOf('136Gift') != -1 && i.id != '136GiftAll'), R.values())(G.gc.pay)
let buyLog136 = await this.getPayLogs(player.uid, ids);
let buyLog136list = R.compose(R.filter(v => v.time >= zeroTime), R.flatten(), R.values())(buyLog136)
if (buyLog136list.length) return G.server.sendMsgByUid(player.uid, 'msg_s2c/PayResult', {code: -1});
}
//针对周末礼包的单独处理
if (payId.indexOf('wkdlibao') != -1) { if (payId.indexOf('wkdlibao') != -1) {
let call = this.getCall(player) let call = this.getCall(player)
let conf = await zmlbGetConf(call, {payId}) let conf = await zmlbGetConf(call, {payId})

View File

@ -20,7 +20,7 @@ export class CrossEmailPull extends Scheduler {
async start() { async start() {
/**同步跨服邮件*/ /**同步跨服邮件*/
G.clientCross.callApi("email/GetCrossEmail", {server_id: G.config.serverId + ""}).then((res) => { G.clientCross.callApi("email/GetCrossEmail", {server_id: G.config.serverId + ""}).then((res) => {
if(!res.isSucc)return; if (!res.isSucc) return;
res.res.emails.forEach(async (email) => { res.res.emails.forEach(async (email) => {
let _prize = email?.prizeData?.prize || []; let _prize = email?.prizeData?.prize || [];
if (email?.prizeData) delete email.prizeData; if (email?.prizeData) delete email.prizeData;
@ -32,6 +32,9 @@ export class CrossEmailPull extends Scheduler {
await EmailFun.addQuanFuEmail(email) await EmailFun.addQuanFuEmail(email)
} }
}) })
if (res.res.emails.length > 0) {
G.clientCross.callApi("email/DelCrossEmail", {eids: res.res.emails.map(e => e._id)})
}
}) })
await this.ctorStartTime() await this.ctorStartTime()
} }

View File

@ -1,5 +1,6 @@
import {ApiCall} from "tsrpc" import {ApiCall} from "tsrpc"
import {YangChengMuBiaofun} from "../api_s2c/event/yangchengmubiao/fun" import {YangChengMuBiaofun} from "../api_s2c/event/yangchengmubiao/fun"
import {Christmasfun} from "../api_s2c/event/christmas/fun"
// import { YangChengMuBiaofun } from "../api_s2c/event/yangchengmubiao/fun" // import { YangChengMuBiaofun } from "../api_s2c/event/yangchengmubiao/fun"
import {Wjjl} from "../module/collection_wjjl" import {Wjjl} from "../module/collection_wjjl"
import {PublicShared} from "../shared/public/public" import {PublicShared} from "../shared/public/public"
@ -73,6 +74,8 @@ export module manager {
TaskFun.setTaskVal(call, this.stype, val, this.chkCall, chkval, this.isinc, this.alchangeVal, arg) TaskFun.setTaskVal(call, this.stype, val, this.chkCall, chkval, this.isinc, this.alchangeVal, arg)
// 养成目标任务计数 // 养成目标任务计数
YangChengMuBiaofun.setTaskVal(call, this.stype, val, this.chkCall, chkval, this.isinc, this.alchangeVal, arg) YangChengMuBiaofun.setTaskVal(call, this.stype, val, this.chkCall, chkval, this.isinc, this.alchangeVal, arg)
// 圣诞活动任务计数
Christmasfun.setTaskVal(call, this.stype, val, this.chkCall, chkval, this.isinc, this.alchangeVal, arg)
} }
// 任务数值, 和检测值,看情况需要上层复写 // 任务数值, 和检测值,看情况需要上层复写
@ -763,6 +766,24 @@ export module manager {
return call.conn.gud?.helpHeros?.length || 0; return call.conn.gud?.helpHeros?.length || 0;
} }
} }
// 第56个任务 完成圣诞活动小游戏
export class Class_task_154 extends BaseClass {
stype = 154
isinc = 1
async initVal(call: ApiCall, con) {
return 1;
}
}
// 第57个任务 领取每日任务最终宝箱
export class Class_task_155 extends BaseClass {
stype = 155
isinc = 0
async initVal(call: ApiCall, con) {
return 1;
}
}
} }

View File

@ -443,13 +443,22 @@ export async function initMongoDB() {
//可结合查看node_modules\mongodb\lib\connection_string.js //可结合查看node_modules\mongodb\lib\connection_string.js
//maxPoolSize默认值100 //maxPoolSize默认值100
let option:MongoClientOptions; /**
* MongoDB连接池具有多个参数
* maxPoolSize100
* minPoolSize0
* maxIdleTimeMS0
* waitQueueTimeoutMS0
*/
let option:MongoClientOptions = {
//空闲5分钟后关闭
maxIdleTimeMS: 5*60*1000
};
//跨服只有1个直接采用默认配置就行 //跨服只有1个直接采用默认配置就行
if(G.argv.serverType != 'cross'){ if(G.argv.serverType != 'cross'){
if(PublicShared.getOpenServerDay() > 3){ if(PublicShared.getOpenServerDay() > 3){
option = { option.maxPoolSize=10;
maxPoolSize: 10
}
} }
} }
@ -463,7 +472,8 @@ export async function initMongoDB() {
console.log('connect crossmongodb ......'); console.log('connect crossmongodb ......');
//本服里,维持住跟跨服数据库的链接 //本服里,维持住跟跨服数据库的链接
let crossClient = await MongoClient.connect(G.config.crossMongodbUrl,{ let crossClient = await MongoClient.connect(G.config.crossMongodbUrl,{
maxPoolSize:10 maxPoolSize:10,
maxIdleTimeMS: 5*60*1000
}); });
G.crossmongodb = new _mongodb(crossClient.db(G.config.corssDBName || "")); G.crossmongodb = new _mongodb(crossClient.db(G.config.corssDBName || ""));
console.log('connect crossmongodb succ'); console.log('connect crossmongodb succ');

View File

@ -30,4 +30,4 @@ export type defaultSyncBtn = {
export type syncBtnKeys = 'shouchong' | 'kaifukuanghuan' | jijinType | 'zhanling' | 'qiridenglu' export type syncBtnKeys = 'shouchong' | 'kaifukuanghuan' | jijinType | 'zhanling' | 'qiridenglu'
| 'xianshilibao' | 'yibaichou' | 'huobanzhaomu' | 'xianshizhaomu' | 'xianshilibao' | 'yibaichou' | 'huobanzhaomu' | 'xianshizhaomu'
| 'leijichongzhi' | 'xinshoulibao' | 'jierihuodong' | 'yuedujijin' | 'zixuanlibao' | 'diaoluoduihuan' | 'chuanshuozhilu' | 'leijichongzhi' | 'xinshoulibao' | 'jierihuodong' | 'yuedujijin' | 'zixuanlibao' | 'diaoluoduihuan' | 'chuanshuozhilu'
| 'yangchengmubiao' | 'G123Gift' | 'yangchengmubiao' | 'G123Gift' | 'christmas'

View File

@ -1,18 +1,10 @@
/** /**
* 15 * 15
*/ */
export type ReqOpen = { export type ReqOpen = {};
};
export type ResOpen = { export type ResOpen = {
/**礼包组 取G.gc.shiwuleichong[index] */ /**礼包组 取G.gc.shiwuleichong[index] */
index: number; day: number;
/**开始时间 倒计时显示 sTime+G.gc.shiwuleichong[index].time */ payIds: string[];
sTime: number;
/**已领取的奖励下标 */
recIndex: number[];
/**已充值的天数 */
payDay: number;
}; };

View File

@ -1,13 +0,0 @@
import { prizeType } from '../../type';
/**
* 15
*/
export type ReqRec = {
index: number;
};
export type ResRec = {
prize: prizeType[];
};

View File

@ -8,8 +8,10 @@ export type ReqOpen = {
}; };
export type ResOpen = { export type ResOpen = {
payNum: number;
receive: { receive: {
[k: string]: number[]; [k: string]: number[];
}; };
buyLog:{
[k: string]: any;
}
}; };

View File

@ -1 +0,0 @@
export type MsgPushGiftChange = 1;

View File

@ -1,5 +0,0 @@
import {Gift} from "../../../module/collection_pushgift";
export type ReqOpen = {}
export type ResOpen = { gifts: Gift[] }

File diff suppressed because it is too large Load Diff