docs(plan): correct admin-web routes and reduce webhook URL parse noise

This commit is contained in:
2026-07-15 14:02:21 +08:00
parent d4b48fb611
commit 1378649fc7
2 changed files with 14 additions and 12 deletions

View File

@@ -796,13 +796,15 @@ public class SendService {
if (!StringUtils.hasText(extInfo)) { if (!StringUtils.hasText(extInfo)) {
return null; return null;
} }
if (extInfo.trim().startsWith("{")) {
try { try {
Map<String, Object> parsed = JsonUtils.fromJson(extInfo, Map.class); Map<String, Object> parsed = JsonUtils.fromJson(extInfo, Map.class);
if (parsed != null && parsed.get("webhook_url") != null) { if (parsed != null && parsed.get("webhook_url") != null) {
return String.valueOf(parsed.get("webhook_url")); return String.valueOf(parsed.get("webhook_url"));
} }
} catch (Exception e) { } catch (Exception e) {
// fallback: treat legacy ext_info as plain URL string // fallback: treat invalid JSON ext_info as plain URL string
}
} }
return extInfo; return extInfo;
} }

View File

@@ -85,15 +85,15 @@ If all services are healthy, mark Task 1 complete. No code commit needed.
- [ ] **Step 1: 登录 admin-web** - [ ] **Step 1: 登录 admin-web**
Use Chrome DevTools MCP: Use Chrome DevTools MCP:
- Navigate to `http://localhost:5177/msg-platform/login` - Navigate to `http://localhost:5177/login`
- Fill username `superadmin`, password `admin123` - Fill username `superadmin`, password `admin123`
- Click login - Click login
- Expected: 跳转至首页。 - Expected: 跳转至首页。
- [ ] **Step 2: 进入渠道账号页面** - [ ] **Step 2: 进入渠道账号页面**
Navigate to `http://localhost:5177/msg-platform/channel-account`. Navigate to `http://localhost:5177/channel/account`.
Take screenshot: `admin-web/screenshots/01-channel-account-list.png` Take screenshot: `admin-web/screenshots/02-bot-created.png`
- [ ] **Step 3: 打开创建账号弹窗** - [ ] **Step 3: 打开创建账号弹窗**
@@ -138,8 +138,8 @@ If any bug found, fix in `admin-web/src/views/ChannelAccount.vue` and commit.
- [ ] **Step 1: 进入会话管理页面** - [ ] **Step 1: 进入会话管理页面**
Navigate to `http://localhost:5177/msg-platform/conversation`. Navigate to `http://localhost:5177/customer/group`.
Take screenshot: `admin-web/screenshots/03-conversation-list.png` Take screenshot: `admin-web/screenshots/04-internal-group-created.png`
- [ ] **Step 2: 打开新增会话弹窗** - [ ] **Step 2: 打开新增会话弹窗**
@@ -223,7 +223,7 @@ If binding fails with "账号渠道类型与会话不一致" or similar, check `
- [ ] **Step 1: 进入消息测试页面** - [ ] **Step 1: 进入消息测试页面**
Navigate to `http://localhost:5177/msg-platform/message-test`. Navigate to `http://localhost:5177/message/test`.
Take screenshot: `admin-web/screenshots/06-message-test.png` Take screenshot: `admin-web/screenshots/06-message-test.png`
- [ ] **Step 2: 选择内部群目标** - [ ] **Step 2: 选择内部群目标**