倒计时没有覆盖复机停机的问题

This commit is contained in:
2026-06-25 10:30:49 +08:00
parent cfb6b52cc2
commit f604791c69
6 changed files with 144 additions and 17 deletions

View File

@@ -165,9 +165,8 @@ export class AssetService extends BaseService {
* @param identifier 资产标识符ICCID 或 VirtualNo
*/
static stopAsset(identifier: string): Promise<BaseResponse<DeviceStopResponse | void>> {
return this.post<BaseResponse<DeviceStopResponse | void>>(
`/api/admin/assets/${identifier}/stop`,
{}
return runRateLimitedAssetAction('stop', identifier, () =>
this.post<BaseResponse<DeviceStopResponse | void>>(`/api/admin/assets/${identifier}/stop`, {})
)
}