Browse Source

🐞 fix: 修复部分bug

Pchen. 1 month ago
parent
commit
11dec9b69b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apis/Lepao/Account/AddAccount.js

+ 1 - 1
apis/Lepao/Account/AddAccount.js

@@ -131,7 +131,7 @@ class AddAccount extends API {
             }
             }
         } else {
         } else {
             sql = 'UPDATE lepao_account SET student_num = ?, email = ?, area = ?, auto_time = ?, target_count = ?, auto_run = ?, notes = ?, auto_day = ?, update_time = ?, notice_type = ? WHERE id = ?'
             sql = 'UPDATE lepao_account SET student_num = ?, email = ?, area = ?, auto_time = ?, target_count = ?, auto_run = ?, notes = ?, auto_day = ?, update_time = ?, notice_type = ? WHERE id = ?'
-            r = await db.query(sql, [student_num, email, area, auto_time, target_count, auto_run, notes ?? '', JSON.stringify(auto_day), time, notice_type, id])
+            r = await db.query(sql, [student_num, email ?? '', area, auto_time, target_count, auto_run, notes ?? '', JSON.stringify(auto_day), time, notice_type, id])
         }
         }
 
 
         try {
         try {