优化微信扫码登录功能实现
This commit is contained in:
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user