增加零号主收入结算确认

This commit is contained in:
yml2213
2026-08-29 01:31:08 +08:00
parent 527e5ed228
commit 2487a2d83f
7 changed files with 101 additions and 5 deletions
+6 -2
View File
@@ -458,10 +458,14 @@ export async function adminForceHandoff(id: number, content: string, reason: str
return data.data
}
export async function adminPlatformCheckoutConfirm(id: number, reason: string) {
export async function adminPlatformCheckoutConfirm(
id: number,
reason: string,
confirmZeroOwnerIncome = false
) {
const { data } = await apiClient.post<ApiResponse<{ confirmed: boolean }>>(
`/admin/orders/${id}/platform-checkout/confirm`,
{ reason }
{ reason, confirm_zero_owner_income: confirmZeroOwnerIncome }
)
return data.data
}