新增创建群聊的费用和人数上限功能

- **创建群聊费用:**
  - 创建群聊现在会根据后台配置的积分规则扣除相应费用(派币)。
  - 在创建页面会显示当前余额和所需费用。
  - 创建时会弹出确认弹窗,显示费用、当前余额和扣除后余额。
  - 如果余额不足,将无法创建。

- **群聊人数上限:**
  - 新增创建群聊时的初始成员人数上限,该上限从后台动态获取。
  - 在选择成员界面会显示当前已选人数和上限(例如 `5/10`)。
  - 如果选择的成员超过上限,会提示错误并且无法创建。

- **后台数据加载:**
  - 新增了从外部字典表 (`/outside/dict`) 获取配置的接口和逻辑,用于加载积分规则和群聊人数限制。
  - App启动时会预加载这些配置,以确保创建群聊时能正确显示费用和人数限制。
This commit is contained in:
2025-11-12 18:10:40 +08:00
parent ca16d54823
commit 464d0adb19
7 changed files with 517 additions and 151 deletions

View File

@@ -376,6 +376,11 @@
<string name="create_group_chat_insufficient_balance">余额不足</string>
<string name="create_group_chat_exceed_limit">成员数量超过上限(%1$d</string>
<string name="pai_coin">派币</string>
<string name="cost_required">需要消耗</string>
<string name="balance_after">支付后余额</string>
<string name="insufficient_pai_coin_balance">派币余额不足</string>
<string name="go_recharge">去充值</string>
<string name="confirm_consumption">确认消费</string>
<string name="connect_world_start_following">连接世界,从关注开始</string>
<string name="why_not_start_with_agent">不如从一个 Agent 开始认识这世界?</string>
<string name="explore">去探索</string>

View File

@@ -369,6 +369,11 @@
<string name="create_group_chat_insufficient_balance">Insufficient balance</string>
<string name="create_group_chat_exceed_limit">Member count exceeds the limit (%1$d)</string>
<string name="pai_coin">Pai Coin</string>
<string name="cost_required">Cost Required</string>
<string name="balance_after">Balance After</string>
<string name="insufficient_pai_coin_balance">Insufficient Pai Coin Balance</string>
<string name="go_recharge">Go Recharge</string>
<string name="confirm_consumption">Confirm Consumption</string>
<string name="connect_world_start_following">Connect the world, start by following</string>
<string name="why_not_start_with_agent">Why not start exploring the world with an Agent?</string>
<string name="explore">Explore</string>