This commit is contained in:
2026-04-28 19:36:39 +08:00
parent a9febe7678
commit f0471a4f8d
206 changed files with 18456 additions and 10133 deletions

View File

@@ -30,6 +30,8 @@ export function requestRpgRuntimeJson<T>(
options: RuntimeRequestOptions = {},
) {
const method = (init.method ?? 'GET').toUpperCase();
// 中文注释:运行时读请求和写请求的重试策略分开配置;
// GET 更保守,写请求允许 unsafe method retry用来兜底瞬时网络抖动。
const retry =
options.retry ??
(method === 'GET' ? RUNTIME_READ_RETRY : RUNTIME_WRITE_RETRY);