优化微信扫码登录功能实现

This commit is contained in:
wangqiao
2025-10-15 22:27:12 +08:00
parent 94f1828620
commit 9e225417a6
4 changed files with 81 additions and 14 deletions

View File

@ -184,5 +184,15 @@ export const getWalletConfig = () => {
*/
export const getLoginQrcode = () => {
return useDollarFetchRequest.get<IResponse<string>>('/prod-api/app-api/member/auth/wx-login-url', {})
return useDollarFetchRequest.get<IResponse<{ sceneStr: string; qrCodeUrl: string }>>('/prod-api/app-api/member/auth/wx-login-url', {})
}
/***
* member/auth/checkScanStatus
* 检查扫码登录状态
*/
export const checkScanStatus = (params: { sceneStr: string }) => {
return useDollarFetchRequest.get<IResponse<{ status: string; openId: string | null; message: string }>>('/prod-api/app-api/member/auth/checkScanStatus', {
query: params,
})
}