优化了部分支付宝界面
This commit is contained in:
@@ -152,9 +152,11 @@ export interface YybTask {
|
||||
task_id: string;
|
||||
worker_job_id?: string;
|
||||
created_by: number;
|
||||
created_by_username?: string;
|
||||
provider: string;
|
||||
platform: 'android' | 'ios';
|
||||
points: number | null;
|
||||
price_fen?: number | null;
|
||||
product_id: string;
|
||||
zone_id: string;
|
||||
zone_name: string;
|
||||
@@ -168,6 +170,9 @@ export interface YybTask {
|
||||
login_qr_mime_type?: string;
|
||||
payment_qr_data?: string;
|
||||
payment_qr_mime_type?: string;
|
||||
payment_started_at?: string | null;
|
||||
payment_qr_created_at?: string | null;
|
||||
payment_last_checked_at?: string | null;
|
||||
created_at: string | null;
|
||||
finished_at: string | null;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,8 @@ export const yybApi = {
|
||||
login: (id: number, provider: 'qq' | 'wechat') =>
|
||||
api.post<YybTask, YybTask>(`/yyb/tasks/${id}/login`, { provider, timeout: 600 }),
|
||||
getTask: (id: number) => api.get<YybTask, YybTask>(`/yyb/tasks/${id}`),
|
||||
listTasks: () => api.get<YybTask[], YybTask[]>('/yyb/tasks'),
|
||||
listTasks: (params?: { scope?: 'mine' | 'all'; status?: string }) =>
|
||||
api.get<YybTask[], YybTask[]>('/yyb/tasks', { params }),
|
||||
options: (id: number, platform: 'android' | 'ios', points?: number, zone_id?: string) =>
|
||||
api.get<YybSelectionOptions, YybSelectionOptions>(`/yyb/tasks/${id}/selection-options`, {
|
||||
params: { platform, ...(points ? { points } : {}), ...(zone_id ? { zone_id } : {}) },
|
||||
@@ -14,4 +15,6 @@ export const yybApi = {
|
||||
select: (id: number, data: { platform: 'android' | 'ios'; points: number; product_id: string; zone_id: string; zone_name: string; role_id: string; role_name: string }) =>
|
||||
api.post<YybTask, YybTask>(`/yyb/tasks/${id}/selection`, data),
|
||||
payment: (id: number) => api.post<YybTask, YybTask>(`/yyb/tasks/${id}/payment`),
|
||||
paymentCheck: (id: number) => api.post<YybTask, YybTask>(`/yyb/tasks/${id}/payment/check`),
|
||||
stop: (id: number) => api.post<YybTask, YybTask>(`/yyb/tasks/${id}/stop`),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user