fix: 接口替换&空占位图修复
parent
2417902efc
commit
5c4cebf1f5
|
|
@ -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
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue