This commit is contained in:
2025-12-31 16:57:20 +08:00
6 changed files with 94 additions and 47 deletions

View File

@@ -2,9 +2,21 @@ import { mainClient, skeletonClient } from '@/api/clients'
import type { IApiResponse } from '@/api/types'
/**
* 请求更新包
* 请求备用更新包
*/
export async function requestUpdatePackage(type: string, version: string) {
const res = await skeletonClient.request<IApiResponse>({
url: 'common/apkConfig/getBackupUpdateUrl',
method: 'POST',
data: { type, version }
})
return res
}
/**
* 检测问题版本号及修复更新包
*/
export async function checkProblemVersion(type: string, version: string) {
const res = await skeletonClient.request<IApiResponse>({
url: 'common/apkConfig/getUpdateUrl',
method: 'POST',