onebots 0.4.39 → 0.4.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -204,11 +204,11 @@ class DingtalkAdapter extends adapter_1.Adapter {
|
|
|
204
204
|
[version === 'V12' ? 'type' : 'post_type']: event,
|
|
205
205
|
version: version,
|
|
206
206
|
self: {
|
|
207
|
-
platform: '
|
|
207
|
+
platform: 'dingtalk',
|
|
208
208
|
user_id: data.self_id
|
|
209
209
|
},
|
|
210
210
|
detail_type: data.message_type || data.notice_type || data.request_type,
|
|
211
|
-
platform: '
|
|
211
|
+
platform: 'dingtalk',
|
|
212
212
|
time: data.timestamp,
|
|
213
213
|
...data,
|
|
214
214
|
};
|
|
@@ -196,15 +196,20 @@ class WechatAdapter extends adapter_1.Adapter {
|
|
|
196
196
|
[version === 'V12' ? 'type' : 'post_type']: event,
|
|
197
197
|
version: version,
|
|
198
198
|
self: {
|
|
199
|
-
platform: '
|
|
199
|
+
platform: 'wechat',
|
|
200
200
|
user_id: data.self_id
|
|
201
201
|
},
|
|
202
202
|
detail_type: data.message_type || data.notice_type || data.request_type,
|
|
203
|
-
platform: '
|
|
203
|
+
platform: 'wechat',
|
|
204
|
+
group: data.group?.info,
|
|
205
|
+
member: data.member?.info,
|
|
206
|
+
friend: data.friend?.info,
|
|
204
207
|
time: data.timestamp,
|
|
205
208
|
...data,
|
|
206
209
|
};
|
|
207
210
|
delete result.bot;
|
|
211
|
+
delete result.c;
|
|
212
|
+
delete result.parser;
|
|
208
213
|
return result;
|
|
209
214
|
}
|
|
210
215
|
async start(uin) {
|