forked from juzheng/sdu-course-bot
		
	fix:修复监控计数错误
This commit is contained in:
		| @@ -33,8 +33,9 @@ export async function health() { | ||||
|                         exitNames.push(currentCourse.kcmc) | ||||
|                     } | ||||
|                 } else { | ||||
|                     totalAcquireCount += parseInt(lastCourse.syrs) - parseInt(currentCourse.syrs) | ||||
|                     if (!acquireNames.includes(currentCourse.kcmc)) { | ||||
|                     let num = parseInt(lastCourse.syrs) - parseInt(currentCourse.syrs) | ||||
|                     totalAcquireCount += num | ||||
|                     if (!acquireNames.includes(currentCourse.kcmc) && num > 0) { | ||||
|                         acquireNames.push(currentCourse.kcmc) | ||||
|                     } | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user