- 新增 `getDeviceCodes` 方法,用于分页查询ARM设备列表并提取 `deviceCode`。该方法支持多种筛选条件,如实例分配状态、物理机状态、服务器编码等。
- 优化 `updateInstanceProperties` 方法:
- 增加对 `padCodes` 参数重复项的校验。
- 将 `padCodes` 的类型从 `JSONArray` 更改为 `new JSONArray(Arrays.asList(padCodes))`,以正确处理数组。
- 完善了错误处理逻辑,对JSON构建、签名计算、接口返回错误码和响应解析失败等情况进行了更详细的日志记录和异常抛出。
- 在接口请求成功后,增加了对响应体中 `code` 字段的校验,确保接口调用成功。
- 将 `baseUrl` 设置为常量。
|
||
|---|---|---|
| .idea | ||
| app | ||
| gradle | ||
| .gitignore | ||
| af.json | ||
| bigo.json | ||
| build.gradle | ||
| clash-ipidea-20250609.yaml | ||
| cmd | ||
| err.log | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| main.js | ||
| settings.gradle | ||