fix(inbox): 移除 warehouseMethods 中 targetUrl/refCode 残留

This commit is contained in:
liufumingren 2026-08-03 03:59:56 +08:00
parent 3d33861afd
commit 7a1f15ac6a
2 changed files with 0 additions and 7 deletions

View File

@ -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 || {},
});