refactor(会员充值): 并发文案复用统一的不设上限判定
- membershipCopy.ts:resolveMembershipConcurrencyLabel / resolveMembershipConcurrencyShortLabel 改为调用 isUnlimitedConcurrency,去掉重复的 128 判定 Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
@@ -79,7 +79,7 @@ export function resolveMembershipConcurrencyLabel(
|
||||
export function resolveMembershipConcurrencyShortLabel(
|
||||
concurrentJobLimit: number,
|
||||
): string {
|
||||
return concurrentJobLimit >= UNLIMITED_CONCURRENT_JOB_LIMIT
|
||||
return isUnlimitedConcurrency(concurrentJobLimit)
|
||||
? '不设套餐上限'
|
||||
: `${concurrentJobLimit} 个`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user