任务:连续登录
This commit is contained in:
@@ -345,10 +345,12 @@ export class CheckSingleTask {
|
||||
let records = await getRecord();
|
||||
let today = `${getZeroPoint()}`;
|
||||
let yesterday = `${getZeroPoint() - 24 * 60 * 60}`
|
||||
if (records.indexOf(yesterday) == -1) {
|
||||
result = { set: 1, records: [...records, today] }
|
||||
} else {
|
||||
result = { inc: 1, records: [...records, today] }
|
||||
if (records.indexOf(today) == -1) {
|
||||
if (records.indexOf(yesterday) == -1) {
|
||||
result = { set: 1, records: [...records, today] }
|
||||
} else {
|
||||
result = { inc: 1, records: [...records, today] }
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user