复机实名校验提示适配
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m41s

This commit is contained in:
luo
2026-07-21 14:30:30 +08:00
parent 6febc66eca
commit 47a2d88c9d
8 changed files with 172 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ import type {
AssetPackageParams,
AssetCurrentPackageResponse,
DeviceStopResponse,
AssetStartResponse,
AssetWalletTransactionListResponse,
AssetWalletTransactionParams,
AssetWalletResponse,
@@ -182,9 +183,16 @@ export class AssetService extends BaseService {
* 前端按资产标识限制 5 分钟内只能调用一次
* @param identifier 资产标识符ICCID 或 VirtualNo
*/
static startAsset(identifier: string): Promise<BaseResponse<void>> {
static startAsset(
identifier: string,
config?: Record<string, any>
): Promise<BaseResponse<AssetStartResponse>> {
return runRateLimitedAssetAction('start', identifier, () =>
this.post<BaseResponse<void>>(`/api/admin/assets/${identifier}/start`, {})
this.post<BaseResponse<AssetStartResponse>>(
`/api/admin/assets/${identifier}/start`,
{},
config
)
)
}