任务:group读取方式修改
This commit is contained in:
@@ -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; // 条件是否满足
|
||||
|
||||
Reference in New Issue
Block a user