From 55c03f35a31979aefd46aead13a145c9b293e6d8 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 27 三月 2025 17:38:55 +0800 Subject: [PATCH] fix: 四期需求 --- packages/services/api/Account.ts | 27 +++++++++++++++++++++------ 1 files changed, 21 insertions(+), 6 deletions(-) diff --git a/packages/services/api/Account.ts b/packages/services/api/Account.ts index ea2306b..ade46e0 100644 --- a/packages/services/api/Account.ts +++ b/packages/services/api/Account.ts @@ -25,12 +25,9 @@ }); } -/** life pay鎵嬫満楠岃瘉鐮佺櫥褰� POST /api/Account/LifePayPhoneMesssageCodeLogin */ -export async function lifePayPhoneMesssageCodeLogin( - body: API.LifePayPhoneMesssageCodeLoginInput, - options?: API.RequestConfig -) { - return request<string>('/api/Account/LifePayPhoneMesssageCodeLogin', { +/** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 POST /api/Account/GetTokenForWeb */ +export async function getTokenForWeb(body: API.AccessRequestDto, options?: API.RequestConfig) { + return request<API.IdentityModelTokenCacheItem>('/api/Account/GetTokenForWeb', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -40,6 +37,24 @@ }); } +/** life pay鎵嬫満楠岃瘉鐮佺櫥褰� POST /api/Account/LifePayPhoneMesssageCodeLogin */ +export async function lifePayPhoneMesssageCodeLogin( + body: API.LifePayPhoneMesssageCodeLoginInput, + options?: API.RequestConfig +) { + return request<API.LifePayPhoneMesssageCodeLoginOutput>( + '/api/Account/LifePayPhoneMesssageCodeLogin', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + } + ); +} + /** 姝ゅ鍚庣娌℃湁鎻愪緵娉ㄩ噴 GET /api/accountAuth/GetCode */ export async function getCode(options?: API.RequestConfig) { return request<any>('/api/accountAuth/GetCode', { -- Gitblit v1.9.1