From 7a1f15ac6a95eca7bd43e5e19452ca7ebc3757aa Mon Sep 17 00:00:00 2001 From: liufumingren Date: Mon, 3 Aug 2026 03:59:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(inbox):=20=E7=A7=BB=E9=99=A4=20warehouseMet?= =?UTF-8?q?hods=20=E4=B8=AD=20targetUrl/refCode=20=E6=AE=8B=E7=95=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/warehouseMethods/inbox.js | 6 ------ .../migrations/20260803140000-inbox-remove-url-refcode.js | 1 - 2 files changed, 7 deletions(-) delete mode 100644 database/migrations/20260803140000-inbox-remove-url-refcode.js diff --git a/app/service/warehouseMethods/inbox.js b/app/service/warehouseMethods/inbox.js index 847f579..7232976 100644 --- a/app/service/warehouseMethods/inbox.js +++ b/app/service/warehouseMethods/inbox.js @@ -33,10 +33,6 @@ class WarehouseInboxService extends MainService { throw new Error('targetChannel 不能为空'); } - if (!body.targetUrl || !String(body.targetUrl).trim()) { - throw new Error('targetUrl 不能为空'); - } - // 构造 ext_id const extId = `api:${String(appKey || 'unknown')}:${String(body.requestId).trim()}`; @@ -51,8 +47,6 @@ class WarehouseInboxService extends MainService { source_extra: String(appKey || ''), target_type: body.targetType || 'im', target_channel: body.targetChannel, - target_url: body.targetUrl, - ref_code: body.refCode || null, ext_data: body.extData || null, flags: body.flags || {}, }); diff --git a/database/migrations/20260803140000-inbox-remove-url-refcode.js b/database/migrations/20260803140000-inbox-remove-url-refcode.js deleted file mode 100644 index 1d16864..0000000 --- a/database/migrations/20260803140000-inbox-remove-url-refcode.js +++ /dev/null @@ -1 +0,0 @@ -use strict \ No newline at end of file