Merge branch 'feat/pricing-plan-fix' into feat/pricing-plan
This commit is contained in:
@@ -454,10 +454,14 @@ const userDetail = {
|
||||
createdAt: iso(60 * 24 * 120),
|
||||
lastLoginAt: iso(30),
|
||||
wallet: {
|
||||
balance: 1860,
|
||||
permanentPoints: 1200,
|
||||
userId: 'u_1001',
|
||||
totalBalance: 1860,
|
||||
spendableBalance: 1660,
|
||||
dailyFreePoints: 0,
|
||||
monthlyPoints: 0,
|
||||
permanentPoints: 1200,
|
||||
heldPoints: 200,
|
||||
refundDebtPoints: 0,
|
||||
walletFrozen: false,
|
||||
manualFrozen: false,
|
||||
refundDebtFrozen: false,
|
||||
@@ -771,6 +775,8 @@ function route(pathname, method, url, requestBody = '') {
|
||||
periodPoints,
|
||||
modelAccess,
|
||||
concurrentJobLimit,
|
||||
// 与后端目录单一真相源 `PROFILE_MEMBERSHIP_RECOMMENDED_PLAN` 对齐:运营推荐 Plus。
|
||||
recommended: planId === 'plus',
|
||||
unlimitedConcurrency:
|
||||
concurrentJobLimit >= UNLIMITED_CONCURRENCY_THRESHOLD,
|
||||
enabled,
|
||||
|
||||
@@ -70,7 +70,6 @@ const retiredOriginalSpacetimeSources = new Set([
|
||||
'runtime/admin_work_visibility.rs',
|
||||
'runtime/browse_history.rs',
|
||||
'runtime/creation_entry_config.rs',
|
||||
'runtime/profile.rs',
|
||||
'runtime/settings.rs',
|
||||
'runtime/snapshots.rs',
|
||||
]);
|
||||
|
||||
@@ -54,39 +54,39 @@ const forbiddenSnippets = [
|
||||
'ai_result_reference 快照组装应使用 by_ai_result_reference_task_id 索引',
|
||||
},
|
||||
{
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/profile.rs',
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/active/profile.rs',
|
||||
snippet:
|
||||
'.profile_save_archive()\n .iter()\n .filter(|row| row.user_id == validated_input.user_id)',
|
||||
reason: 'profile_save_archive 已有 by_profile_save_archive_user_id 索引',
|
||||
},
|
||||
{
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/profile.rs',
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/active/profile.rs',
|
||||
snippet:
|
||||
'.profile_played_world()\n .iter()\n .filter(|row| row.user_id == validated_input.user_id)',
|
||||
reason: 'profile_played_world 已有 by_profile_played_world_user_id 索引',
|
||||
},
|
||||
{
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/profile.rs',
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/active/profile.rs',
|
||||
snippet:
|
||||
'.profile_wallet_ledger()\n .iter()\n .filter(|row| row.user_id == validated_input.user_id)',
|
||||
reason: 'profile_wallet_ledger 已有 by_profile_wallet_ledger_user_id 索引',
|
||||
},
|
||||
{
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/profile.rs',
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/active/profile.rs',
|
||||
snippet:
|
||||
'.profile_referral_relation()\n .iter()\n .filter(|row| row.inviter_user_id == user_id)',
|
||||
reason:
|
||||
'profile_referral_relation 已有 by_profile_referral_inviter_user_id 索引',
|
||||
},
|
||||
{
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/profile.rs',
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/active/profile.rs',
|
||||
snippet:
|
||||
'.profile_recharge_order()\n .iter()\n .filter(|row| row.user_id == user_id)',
|
||||
reason:
|
||||
'profile_recharge_order 已有 by_profile_recharge_order_user_id 索引',
|
||||
},
|
||||
{
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/profile.rs',
|
||||
file: 'server-rs/crates/spacetime-module/src/runtime/active/profile.rs',
|
||||
snippet: '.tracking_daily_stat()\n .iter()\n .filter(|row| {',
|
||||
reason:
|
||||
'tracking_daily_stat 已有 by_tracking_daily_stat_scope_day / event_day 索引,analytics 查询不应整表过滤',
|
||||
|
||||
Reference in New Issue
Block a user