|
@@ -35,7 +35,7 @@ class StartLepao extends API {
|
|
|
|
|
|
|
|
const day = new Date().getDay()
|
|
const day = new Date().getDay()
|
|
|
let sql = `
|
|
let sql = `
|
|
|
- SELECT name, create_user, student_num, token, uid, school_id, state
|
|
|
|
|
|
|
+ SELECT name, student_num
|
|
|
FROM lepao_account
|
|
FROM lepao_account
|
|
|
WHERE auto_run = 1 AND state = 1
|
|
WHERE auto_run = 1 AND state = 1
|
|
|
AND JSON_CONTAINS(auto_day, CAST(? AS JSON))
|
|
AND JSON_CONTAINS(auto_day, CAST(? AS JSON))
|
|
@@ -46,7 +46,7 @@ class StartLepao extends API {
|
|
|
return this.logger.error('获取补充乐跑账号失败!')
|
|
return this.logger.error('获取补充乐跑账号失败!')
|
|
|
|
|
|
|
|
for (const item of r) {
|
|
for (const item of r) {
|
|
|
- const { name, create_user, student_num, token, uid, school_id, state } = item
|
|
|
|
|
|
|
+ const { name, student_num } = item
|
|
|
this.logger.info(`${name}(${student_num})开始补充乐跑`)
|
|
this.logger.info(`${name}(${student_num})开始补充乐跑`)
|
|
|
|
|
|
|
|
const isSuccess = await Redis.get(`lepaoSuccess:${student_num}`)
|
|
const isSuccess = await Redis.get(`lepaoSuccess:${student_num}`)
|