fix(plan/ui): correct screenshot extension and align bot ext_info guard with backend
This commit is contained in:
@@ -289,6 +289,7 @@ function resetDrawerForm() {
|
|||||||
|
|
||||||
function parseBotExtInfo(extInfo: string | undefined): string {
|
function parseBotExtInfo(extInfo: string | undefined): string {
|
||||||
if (!extInfo) return ''
|
if (!extInfo) return ''
|
||||||
|
if (!extInfo.trim().startsWith('{')) return extInfo
|
||||||
try {
|
try {
|
||||||
const parsed = JSON.parse(extInfo)
|
const parsed = JSON.parse(extInfo)
|
||||||
if (parsed && typeof parsed === 'object' && parsed.webhook_url) {
|
if (parsed && typeof parsed === 'object' && parsed.webhook_url) {
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ If binding fails with "账号渠道类型与会话不一致" or similar, check `
|
|||||||
- [ ] **Step 1: 进入消息测试页面**
|
- [ ] **Step 1: 进入消息测试页面**
|
||||||
|
|
||||||
Navigate to `http://localhost:5177/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.jpeg`
|
||||||
|
|
||||||
- [ ] **Step 2: 选择内部群目标**
|
- [ ] **Step 2: 选择内部群目标**
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user