fix: 修复刷课判断错误

This commit is contained in:
2026-03-31 21:35:21 +08:00
parent 9e7131f210
commit a061123e36

View File

@@ -214,7 +214,7 @@ export const runStudyQueue = async (_payload: StudyRunnerPayload) => {
study_time: String(currentTime), study_time: String(currentTime),
status: count === 0 ? 1 : currentTime >= total ? 3 : 2, status: count === 0 ? 1 : currentTime >= total ? 3 : 2,
}); });
if (!resp.data.state) { if (resp.data.state != 0) {
_payload.onLog?.(`⛔ 自动停止: ${resp.data.msg}`, _payload.accountId); _payload.onLog?.(`⛔ 自动停止: ${resp.data.msg}`, _payload.accountId);
_payload.setIsRunningStudy(); _payload.setIsRunningStudy();
return; return;