Browse Source

✨ feat: 删除多于字段

Pchen. 1 month ago
parent
commit
01252433a7
2 changed files with 4 additions and 4 deletions
  1. 2 2
      apis/Corn/StartAutoLepao.js
  2. 2 2
      apis/Corn/StartLepao.js

+ 2 - 2
apis/Corn/StartAutoLepao.js

@@ -26,7 +26,7 @@ class StartAutoLepao extends API {
             const hour = new Date().getHours()
             this.logger.info('开始执行自动乐跑任务')
             let sql = `
-                        SELECT name, create_user, student_num, token, uid, school_id, state
+                        SELECT name, student_num
                         FROM lepao_account
                         WHERE auto_run = 1
                             AND (auto_time = ? OR (auto_time = -1 AND today_auto_time = ?))
@@ -52,7 +52,7 @@ class StartAutoLepao extends API {
             }
 
             for (const item of r) {
-                const { name, create_user, student_num, token, uid, school_id, state } = item
+                const { name, student_num } = item
 
                 const isSuccess = await Redis.get(`lepaoSuccess:${student_num}`)
                 if (isSuccess) {

+ 2 - 2
apis/Corn/StartLepao.js

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