fix(inbox): 移除 warehouseMethods 中 targetUrl/refCode 残留
This commit is contained in:
parent
3d33861afd
commit
7a1f15ac6a
@ -33,10 +33,6 @@ class WarehouseInboxService extends MainService {
|
|||||||
throw new Error('targetChannel 不能为空');
|
throw new Error('targetChannel 不能为空');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!body.targetUrl || !String(body.targetUrl).trim()) {
|
|
||||||
throw new Error('targetUrl 不能为空');
|
|
||||||
}
|
|
||||||
|
|
||||||
// 构造 ext_id
|
// 构造 ext_id
|
||||||
const extId = `api:${String(appKey || 'unknown')}:${String(body.requestId).trim()}`;
|
const extId = `api:${String(appKey || 'unknown')}:${String(body.requestId).trim()}`;
|
||||||
|
|
||||||
@ -51,8 +47,6 @@ class WarehouseInboxService extends MainService {
|
|||||||
source_extra: String(appKey || ''),
|
source_extra: String(appKey || ''),
|
||||||
target_type: body.targetType || 'im',
|
target_type: body.targetType || 'im',
|
||||||
target_channel: body.targetChannel,
|
target_channel: body.targetChannel,
|
||||||
target_url: body.targetUrl,
|
|
||||||
ref_code: body.refCode || null,
|
|
||||||
ext_data: body.extData || null,
|
ext_data: body.extData || null,
|
||||||
flags: body.flags || {},
|
flags: body.flags || {},
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
use strict
|
|
||||||
Loading…
x
Reference in New Issue
Block a user