Browse Source

✨ feat: 向前端返回教务系统密码

Pchen. 1 month ago
parent
commit
c80388dc8f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/QK/TaskScheduler.js

+ 1 - 1
lib/QK/TaskScheduler.js

@@ -625,7 +625,7 @@ class TaskScheduler {
         }
         const logs = await db.query('SELECT client_id, event, message, payload_json, create_time FROM qk_task_log WHERE task_id = ? ORDER BY create_time DESC LIMIT 100', [taskId])
         return {
-            task: this.serializeTask(rows[0]),
+            task: this.serializeTask(rows[0], true),
             logs: (logs || []).map(log => {
                 if (typeof log.payload_json === 'string' && log.payload_json) {
                     try {