fix:
日常任务初始值问题修复
This commit is contained in:
parent
e2d9eea5ed
commit
dacd312bfe
@ -390,7 +390,10 @@ export module manager {
|
|||||||
|
|
||||||
async initVal(call: ApiCall, con) {
|
async initVal(call: ApiCall, con) {
|
||||||
const data = await TanXianFun.getData(call);
|
const data = await TanXianFun.getData(call);
|
||||||
return data.useFastGuaJiNum || 0
|
if (data?.resetTime > PublicShared.getToDayZeroTime()) {
|
||||||
|
return data.useFastGuaJiNum || 0
|
||||||
|
}
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -401,7 +404,10 @@ export module manager {
|
|||||||
|
|
||||||
async initVal(call: ApiCall, con) {
|
async initVal(call: ApiCall, con) {
|
||||||
let data = await JJCFun.getData(call);
|
let data = await JJCFun.getData(call);
|
||||||
return data?.useFightNum || 0
|
if (data?.resetTime >= PublicShared.getToDayZeroTime()) {
|
||||||
|
return data?.useFightNum || 0
|
||||||
|
}
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -418,7 +424,10 @@ export module manager {
|
|||||||
|
|
||||||
async initVal(call: ApiCall, con) {
|
async initVal(call: ApiCall, con) {
|
||||||
let myData = await G.mongodb.cPlayerInfo('meirishilian').findOne({uid: call.uid, type: 'meirishilian'});
|
let myData = await G.mongodb.cPlayerInfo('meirishilian').findOne({uid: call.uid, type: 'meirishilian'});
|
||||||
return R.compose(R.sum(), R.map(i => i[0].useFightNum), R.values())(myData.data.numInfo) || 0
|
if (myData.data.refreshTime > PublicShared.getToDayZeroTime()) {
|
||||||
|
return R.compose(R.sum(), R.map(i => i[0].useFightNum), R.values())(myData.data.numInfo) || 0
|
||||||
|
}
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -435,7 +444,10 @@ export module manager {
|
|||||||
|
|
||||||
async initVal(call: ApiCall, con) {
|
async initVal(call: ApiCall, con) {
|
||||||
let myData = await G.mongodb.cPlayerInfo('qjzzd').findOne({uid: call.uid, type: 'qjzzd'});
|
let myData = await G.mongodb.cPlayerInfo('qjzzd').findOne({uid: call.uid, type: 'qjzzd'});
|
||||||
return myData.useFightNum || 0
|
if (myData?.refreFightTime > PublicShared.getToDayZeroTime()) {
|
||||||
|
return myData?.useFightNum || 0
|
||||||
|
}
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -491,7 +503,10 @@ export module manager {
|
|||||||
|
|
||||||
async initVal(call: ApiCall, con) {
|
async initVal(call: ApiCall, con) {
|
||||||
let data: Partial<CollectionWanted> = await G.mongodb.collection('wanted').findOne({uid: call.uid}) || {};
|
let data: Partial<CollectionWanted> = await G.mongodb.collection('wanted').findOne({uid: call.uid}) || {};
|
||||||
return data.toDayUseNum || 0
|
if (data.refreshTime > PublicShared.getToDayZeroTime()) {
|
||||||
|
return data.toDayUseNum || 0
|
||||||
|
}
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -766,6 +781,7 @@ export module manager {
|
|||||||
return call.conn.gud?.helpHeros?.length || 0;
|
return call.conn.gud?.helpHeros?.length || 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 第56个任务 完成圣诞活动小游戏
|
// 第56个任务 完成圣诞活动小游戏
|
||||||
export class Class_task_154 extends BaseClass {
|
export class Class_task_154 extends BaseClass {
|
||||||
stype = 154
|
stype = 154
|
||||||
@ -775,6 +791,7 @@ export module manager {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 第57个任务 领取每日任务最终宝箱
|
// 第57个任务 领取每日任务最终宝箱
|
||||||
export class Class_task_155 extends BaseClass {
|
export class Class_task_155 extends BaseClass {
|
||||||
stype = 155
|
stype = 155
|
||||||
|
Loading…
Reference in New Issue
Block a user