任务:group读取方式修改

This commit is contained in:
luying
2021-11-20 10:48:34 +08:00
parent 59d48382fa
commit da8dca2f22
4 changed files with 15 additions and 16 deletions

View File

@@ -319,7 +319,7 @@ export async function checkTask(roleId: string, taskType: number, count: number,
for (let [typeAndGroup, { task0, tasks }] of groups) {
let arr = typeAndGroup.split('_');
let type = parseInt(arr[0]);
let group = parseInt(arr[1]);
let group = arr[1];
let rec = await checkTaskRec(roleId, type, group, task0, count, isInc, param);
if (rec) {
@@ -335,7 +335,7 @@ export async function checkTask(roleId: string, taskType: number, count: number,
}
// 检查各项任务是否达成,达成了就保存到数据库
export async function checkTaskRec(roleId: string, type: number, group: number, dicTask: DicTask, count: number, isInc: boolean, param: TaskParam) {
export async function checkTaskRec(roleId: string, type: number, group: string, dicTask: DicTask, count: number, isInc: boolean, param: TaskParam) {
let { taskParam, taskType } = dicTask;
let isMatch = true; // 条件是否满足