fix(后台会员): 并发上限展示与提示改用后端下发值
- ProfileMembershipPlanAdminListResponse 增加 unlimitedConcurrencyThreshold,会员档位列表接口下发 MEMBERSHIP_UNLIMITED_CONCURRENCY。 - admin-web 的档位响应补上 unlimitedConcurrency,列表“不设上限”展示改用该标志,表单提示与校验改用后端阈值,删除页面硬编码的 128。 - 本地假后台同步补 unlimitedConcurrency 与 unlimitedConcurrencyThreshold。
This commit is contained in:
@@ -756,6 +756,7 @@ function route(pathname, method, url) {
|
||||
periodPoints,
|
||||
modelAccess,
|
||||
concurrentJobLimit,
|
||||
unlimitedConcurrency: concurrentJobLimit >= 128,
|
||||
enabled,
|
||||
});
|
||||
const plans = [
|
||||
@@ -766,7 +767,9 @@ function route(pathname, method, url) {
|
||||
plan('max', '旗舰会员', 4, 69_900, 699_000, 8_650, 'full', 128, true),
|
||||
];
|
||||
// 本地预览不解析请求体:POST 统一回显 starter,仅用于页面回填。
|
||||
return method === 'POST' ? plans[1] : { entries: plans };
|
||||
return method === 'POST'
|
||||
? plans[1]
|
||||
: { entries: plans, unlimitedConcurrencyThreshold: 128 };
|
||||
}
|
||||
if (pathname === '/admin/api/profile/recharge-products') {
|
||||
const product = (
|
||||
|
||||
Reference in New Issue
Block a user