🐛 fix(user): Update user subscribe display

This commit is contained in:
web@ppanel
2025-04-09 03:27:22 -04:00
parent 7023875548
commit 3bb714d15c
31 changed files with 393 additions and 206 deletions
+18
View File
@@ -25,6 +25,24 @@ export async function getApplication(options?: { [key: string]: any }) {
});
}
/** Check verification code POST /v1/common/check_verification_code */
export async function checkVerificationCode(
body: API.CheckVerificationCodeRequest,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: API.CheckVerificationCodeRespone }>(
'/v1/common/check_verification_code',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
},
);
}
/** Get verification code POST /v1/common/send_code */
export async function sendEmailCode(body: API.SendCodeRequest, options?: { [key: string]: any }) {
return request<API.Response & { data?: API.SendCodeResponse }>('/v1/common/send_code', {
+12
View File
@@ -121,6 +121,17 @@ declare namespace API {
telephone: string;
};
type CheckVerificationCodeRequest = {
method: 'email' | 'mobile';
account: string;
code: string;
type: number;
};
type CheckVerificationCodeRespone = {
status: boolean;
};
type CloseOrderRequest = {
orderNo: string;
};
@@ -910,6 +921,7 @@ declare namespace API {
subscribe: Subscribe;
start_time: number;
expire_time: number;
finished_at: number;
reset_time: number;
traffic: number;
download: number;