Pchen. 1 month ago
parent
commit
532927efde

+ 3 - 3
apis/Lepao/Account/UpdateAccount/UpdateAccount.js

@@ -116,7 +116,7 @@ class UpdateAccount extends API {
                 }
                 }
 
 
                 if (findRows[0].notice_type === 'bot' && findRows[0].bot_umo) {
                 if (findRows[0].notice_type === 'bot' && findRows[0].bot_umo) {
-                    this.logger.info(`${account}发送乐跑更新Bot通知,UMO=${rows[0].bot_umo}`)
+                        this.logger.info(`${student_num}发送乐跑更新Bot通知,UMO=${rows[0].bot_umo}`)
                     const ch = await mq.getChannel(this.messageQueue)
                     const ch = await mq.getChannel(this.messageQueue)
 
 
                     await ch.assertQueue(this.messageQueue, {
                     await ch.assertQueue(this.messageQueue, {
@@ -132,10 +132,10 @@ class UpdateAccount extends API {
                         }
                         }
                     )
                     )
 
 
-                    this.logger.info(`${account}乐跑更新Bot通知发送完成`)
+                    this.logger.info(`${student_num}乐跑更新Bot通知发送完成`)
                 } else if (findRows[0].notice_type === 'email' && findRows[0].email) {
                 } else if (findRows[0].notice_type === 'email' && findRows[0].email) {
                     await EmailTemplate.updateSuccess(findRows[0].email, emailData)
                     await EmailTemplate.updateSuccess(findRows[0].email, emailData)
-                    this.logger.info(`${account}乐跑更新邮件发送完成`)
+                    this.logger.info(`${student_num}乐跑更新邮件发送完成`)
                 }
                 }
 
 
                 if (findRows[0].auto_run === 1 && Array.isArray(findRows[0].auto_day) && findRows[0].auto_day.includes(new Date().getDay())) {
                 if (findRows[0].auto_run === 1 && Array.isArray(findRows[0].auto_day) && findRows[0].auto_day.includes(new Date().getDay())) {

+ 3 - 3
apis/Lepao/Account/UpdateAccount/UpdateAccountAndroidApp.js

@@ -118,7 +118,7 @@ class UpdateAccountAndroidApp extends API {
                 }
                 }
 
 
                 if (findRows[0].notice_type === 'bot' && findRows[0].bot_umo) {
                 if (findRows[0].notice_type === 'bot' && findRows[0].bot_umo) {
-                    this.logger.info(`${account}发送乐跑更新Bot通知,UMO=${rows[0].bot_umo}`)
+                    this.logger.info(`${student_num}发送乐跑更新Bot通知,UMO=${findRows[0].bot_umo}`)
                     const ch = await mq.getChannel(this.messageQueue)
                     const ch = await mq.getChannel(this.messageQueue)
 
 
                     await ch.assertQueue(this.messageQueue, {
                     await ch.assertQueue(this.messageQueue, {
@@ -134,10 +134,10 @@ class UpdateAccountAndroidApp extends API {
                         }
                         }
                     )
                     )
 
 
-                    this.logger.info(`${account}乐跑更新Bot通知发送完成`)
+                    this.logger.info(`${student_num}乐跑更新Bot通知发送完成`)
                 } else if (findRows[0].notice_type === 'email' && findRows[0].email) {
                 } else if (findRows[0].notice_type === 'email' && findRows[0].email) {
                     await EmailTemplate.updateSuccess(findRows[0].email, emailData)
                     await EmailTemplate.updateSuccess(findRows[0].email, emailData)
-                    this.logger.info(`${account}乐跑更新邮件发送完成`)
+                    this.logger.info(`${student_num}乐跑更新邮件发送完成`)
                 }
                 }
 
 
                 if (findRows[0].auto_run === 1 && Array.isArray(findRows[0].auto_day) && findRows[0].auto_day.includes(new Date().getDay())) {
                 if (findRows[0].auto_run === 1 && Array.isArray(findRows[0].auto_day) && findRows[0].auto_day.includes(new Date().getDay())) {

+ 3 - 3
apis/Lepao/Account/UpdateAccount/UpdateAccountiPhone.js

@@ -120,7 +120,7 @@ class UpdateAccountiPhone extends API {
                 }
                 }
 
 
                 if (findRows[0].notice_type === 'bot' && findRows[0].bot_umo) {
                 if (findRows[0].notice_type === 'bot' && findRows[0].bot_umo) {
-                    this.logger.info(`${account}发送乐跑更新Bot通知,UMO=${rows[0].bot_umo}`)
+                    this.logger.info(`${student_num}发送乐跑更新Bot通知,UMO=${findRows[0].bot_umo}`)
                     const ch = await mq.getChannel(this.messageQueue)
                     const ch = await mq.getChannel(this.messageQueue)
 
 
                     await ch.assertQueue(this.messageQueue, {
                     await ch.assertQueue(this.messageQueue, {
@@ -136,10 +136,10 @@ class UpdateAccountiPhone extends API {
                         }
                         }
                     )
                     )
 
 
-                    this.logger.info(`${account}乐跑更新Bot通知发送完成`)
+                    this.logger.info(`${student_num}乐跑更新Bot通知发送完成`)
                 } else if (findRows[0].notice_type === 'email' && findRows[0].email) {
                 } else if (findRows[0].notice_type === 'email' && findRows[0].email) {
                     await EmailTemplate.updateSuccess(findRows[0].email, emailData)
                     await EmailTemplate.updateSuccess(findRows[0].email, emailData)
-                    this.logger.info(`${account}乐跑更新邮件发送完成`)
+                    this.logger.info(`${student_num}乐跑更新邮件发送完成`)
                 }
                 }
 
 
                 if (findRows[0].auto_run === 1 && Array.isArray(findRows[0].auto_day) && findRows[0].auto_day.includes(new Date().getDay())) {
                 if (findRows[0].auto_run === 1 && Array.isArray(findRows[0].auto_day) && findRows[0].auto_day.includes(new Date().getDay())) {