feat: 重构订单和物流信息展示格式
主要改动: - 订单列表:使用 order_list 格式,展示 5 个订单(全部状态) - 订单详情:使用 order_detail 格式,优化价格和时间显示 - 物流信息:使用 logistics 格式,根据 track id 动态生成步骤 - 商品图片:从 orderProduct.imageUrl 字段获取 - 时间格式:统一为 YYYY-MM-DD HH:MM:SS - 多语言支持:amountLabel、orderTime 支持中英文 - 配置管理:新增 FRONTEND_URL 环境变量 - API 集成:改进 Mall API tracks 数据解析 - 认证优化:account_id 从 webhook 动态获取 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -367,7 +367,8 @@ async def process_message(
|
||||
message: str,
|
||||
history: list[dict] = None,
|
||||
context: dict = None,
|
||||
user_token: str = None
|
||||
user_token: str = None,
|
||||
mall_token: str = None
|
||||
) -> AgentState:
|
||||
"""Process a user message through the agent workflow
|
||||
|
||||
@@ -379,6 +380,7 @@ async def process_message(
|
||||
history: Previous conversation history
|
||||
context: Existing conversation context
|
||||
user_token: User JWT token for API calls
|
||||
mall_token: Mall API token (if different from user_token)
|
||||
|
||||
Returns:
|
||||
Final agent state with response
|
||||
@@ -393,7 +395,8 @@ async def process_message(
|
||||
current_message=message,
|
||||
messages=history,
|
||||
context=context,
|
||||
user_token=user_token
|
||||
user_token=user_token,
|
||||
mall_token=mall_token
|
||||
)
|
||||
|
||||
# Get compiled graph
|
||||
|
||||
Reference in New Issue
Block a user