修复优化

This commit is contained in:
zjf committed 2026-08-10 00:40:42 +08:00
1 parent 25753010a2
commit 87307392e4
2 files changed
+77 -66

No files matched your search

+3 -11
View File
@@ -87,6 +87,7 @@ import { hooks, router, constant } from "@@/index"
import { actCancel, userApi } from "@@/api"
import { isDevEnv } from "@/sheep/utils/app"
import { APPENV } from "@/sheep/constant"
import { ensureBizLogin } from "@/sheep/utils/request"
import ModifyUser from "@@/components/modify-user.vue"
@@ -185,20 +186,11 @@ const login = {
}
},
// 诗画环境登录
// 诗画环境登录:走统一 ensureBizLogin,避免与请求拦截器各打一遍 /shjnsso
shihuaLogin: async () => {
const appInfo = await (window as any).CP2.getAppInfo()
if (appInfo.code == 0) return false
const userInfo = await (window as any).CP2.getUserInfo()
if (userInfo.code == 0) {
uni.showToast({ title: "获取诗画用户信息失败", icon: "none" })
return false
} else {
const { accountId, sessionId } = userInfo.data
return login.doLogin(1, "", accountId, sessionId)
// return login.doLogin(1, "", "67186e49d63fea141aad6772", "67186e49d63fea141aad6776")
}
return await ensureBizLogin()
},
// 浙政钉登录