|
|
@@ -36,6 +36,12 @@ class StartAutoLepao extends API {
|
|
|
const { name, create_user, student_num } = item
|
|
|
this.logger.info(`${name}(${student_num})开始乐跑`)
|
|
|
|
|
|
+ const isProgress = await Redis.get(`cgLepaoProgress:${student_num}`)
|
|
|
+ if (isProgress) {
|
|
|
+ this.logger.info(`${name}(${student_num})已进入乐跑任务队列,请等待乐跑完成后再进行乐跑操作`)
|
|
|
+ continue
|
|
|
+ }
|
|
|
+
|
|
|
const isSuccess = await Redis.get(`cgLepaoSuccess:${student_num}`)
|
|
|
if (isSuccess) {
|
|
|
this.logger.info(`${name}(${student_num})当天已乐跑成功,不执行自动乐跑`)
|