|
@@ -42,6 +42,12 @@ class StartLepao extends API {
|
|
|
const { name, create_user, student_num } = item
|
|
const { name, create_user, student_num } = item
|
|
|
this.logger.info(`${name}(${student_num})开始补充乐跑`)
|
|
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}`)
|
|
const isSuccess = await Redis.get(`cgLepaoSuccess:${student_num}`)
|
|
|
if (isSuccess) {
|
|
if (isSuccess) {
|
|
|
this.logger.info(`${name}(${student_num})当天已乐跑成功,不执行补充乐跑`)
|
|
this.logger.info(`${name}(${student_num})当天已乐跑成功,不执行补充乐跑`)
|