This commit is contained in:
zjf committed 2026-05-09 15:03:18 +08:00
1 parent d7f5f1a656
commit fd068aeaf2
2 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -351,8 +351,8 @@ async function loginBySh(): Promise<boolean> {
return false
}
// 如果是设备未验证,保存响应数据
if (response.data == -1) {
// 设备未信任:后端 R.failed(-1, msg) 业务码在 code,data 为 null
if (response.code == -1) {
uni.setStorageSync(TOKEN_KEY, { data: -1 })
}