登录接口修改

This commit is contained in:
weiwei committed 2025-04-04 20:25:26 +08:00
1 parent 07235041ad
commit b1f41521d9
3 files changed
+16 -17

No files matched your search

+3 -2
View File
@@ -29,8 +29,9 @@ export default {
// 浙政钉授权
auth: (token: string): Promise<any> =>
request({
url: `/thirdparty/thirdPartyOAth2/zzdsso/${token}`,
method: "GET",
url: "/thirdparty/thirdPartyOAth2/zzdsso",
method: "POST",
data: { token },
custom: {
showLoading: false,
loadingMsg: "授权中",
+5 -2
View File
@@ -58,8 +58,11 @@ async function handleZzdLogin(): Promise<boolean> {
} else {
uni.removeStorageSync(TOKEN_KEY)
uni.removeStorageSync(USER_INFO_KEY)
// uni.showToast({ title: res.msg || "登录失败", icon: "none" })
uni.showToast({ title: "用户信息获取失败,请退出然后重新进入智慧后勤应用", icon: "none", duration: 5000 })
if (res.msg == "token已失效") {
uni.showToast({ title: "用户凭证已失效,请退出并重新进入智慧后勤应用", icon: "none", duration: 6000 })
} else {
uni.showToast({ title: res.msg || "登录失败", icon: "none" })
}
return false
}
} catch (error) {