> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.6mm.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.6mm.com/_mcp/server.

# 排查

<h2 id="trading-widget-issues">
  Trading Widget 问题
</h2>

| 现象                       | 可能原因                        | 处理方式                                                       |
| ------------------------ | --------------------------- | ---------------------------------------------------------- |
| iframe 请求 Partner 本地域名   | 未传 baseUrl                  | 传 baseUrl: '[https://app.6mm.com'。](https://app.6mm.com'。) |
| iframe 不显示或高度很小          | 父容器没有高度                     | 设置容器高度或传 height。                                           |
| token\_provider\_missing | partner-token 模式没有 provider | 补充 auth.tokenProvider。                                     |
| auth\_exchange\_failed   | token 无效、过期或 channelId 不一致  | 检查后端返回和 channelId。                                         |

<h2 id="agent-sdk-issues">
  Agent SDK 问题
</h2>

| 现象               | 可能原因              | 处理方式                       |
| ---------------- | ----------------- | -------------------------- |
| 签名失败             | 密钥错误、时间漂移或手动改签名字段 | 让 SDK 自动生成签名字段并同步服务器时间。    |
| 有重复资金变动风险        | 超时后换了新订单号         | 先用原 agentOrderNo 查单。       |
| 把 PROCESSING 当失败 | 对待确认状态理解错误        | 等待 Webhook 或调用 queryOrder。 |
| Webhook 重复入账     | 没有幂等处理            | 增加幂等键和终态检查。                |