fix: 接口替换&空占位图修复

master
xjs 2025-05-12 16:02:46 +08:00
parent 2417902efc
commit 5c4cebf1f5
3 changed files with 11 additions and 3 deletions

View File

@ -131,7 +131,7 @@ const handleClick = () => {
}
}
const getUserInfo = async (code: string) => {
const getUserInfo = async (_code: string) => {
let userInfo = (await useLogin()) as { code: string; errMsg: string }
if (userInfo.errMsg == 'login:ok') {
@ -141,7 +141,7 @@ const getUserInfo = async (code: string) => {
userStore.setUserToken(result.accessToken)
userStore.setUserOpenId(result.openId)
setWxInfo({ code: userInfo.code, openId: result.openId })
setWxInfo({ code: _code, openId: result.openId })
//
getWxUserInfo().then((resp) => {

File diff suppressed because one or more lines are too long

View File

@ -74,7 +74,7 @@ export const getSessionKey = (params: { JsCode: string }) => {
}
export const setWxInfo = (params: { code: string; openId: string }) => {
return http.post('/api/weChatUserEx/wxInfo', params)
return http.get('/api/sysWxOpen/wxPhone', params)
}
export const getWxUserInfo = () => {