From fc530b9621b657a0df59445f85af6c5271b380e5 Mon Sep 17 00:00:00 2001 From: "97694732@qq.com" Date: Fri, 5 Jun 2026 09:25:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:psiLogin=E5=93=8D=E5=BA=94=E7=A0=81?= =?UTF-8?q?=E4=BB=8Ecode:0=E6=94=B9=E4=B8=BAcode:200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/api.js b/utils/api.js index 8f896ff..a57e504 100644 --- a/utils/api.js +++ b/utils/api.js @@ -191,7 +191,7 @@ export function psiLogin(username, password) { console.log('【PSI登录】响应状态码:', res.statusCode) console.log('【PSI登录】响应数据:', JSON.stringify(res.data)) if (res.statusCode === 200 && res.data) { - if (res.data.code === 0) { + if (res.data.code === 200) { resolve(res.data.data || res.data) } else { reject(new Error(res.data.msg || res.data.message || '登录失败'))