Browse Source

🐞 fix: 修复关闭自动乐跑时仍需设定目标次数的问题

Pchen. 3 months ago
parent
commit
d8fc67e489
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apis/Lepao/Account/AddAccount.js

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

@@ -85,7 +85,7 @@ class AddAccount extends API {
         }
 
         if (countRows.length !== 0) {
-            if (countRows[0].total_num >= target_count && target_count !== 0)
+            if (auto_run === 1 && countRows[0].total_num >= target_count && target_count !== 0)
                 return res.json({ ...BaseStdResponse.ERR, msg: '该账号累计跑步次数已达到预设目标次数,请尝试增大目标次数后再试' })
         }