node-karin 0.12.21 → 0.12.23
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.
|
@@ -156,8 +156,8 @@ export class OB11Event {
|
|
|
156
156
|
group_id: groupId,
|
|
157
157
|
operator_uid: (data.operator_id + '') || '',
|
|
158
158
|
operator_uin: (data.operator_id + '') || '',
|
|
159
|
-
target_uid: data.user_id || '',
|
|
160
|
-
target_uin: data.user_id || '',
|
|
159
|
+
target_uid: (data.user_id + '') || '',
|
|
160
|
+
target_uin: (data.user_id + '') || '',
|
|
161
161
|
type: data.sub_type,
|
|
162
162
|
};
|
|
163
163
|
const options = {
|
|
@@ -208,8 +208,8 @@ export class OB11Event {
|
|
|
208
208
|
group_id: groupId,
|
|
209
209
|
operator_uid: (data.operator_id + '') || '',
|
|
210
210
|
operator_uin: (data.operator_id + '') || '',
|
|
211
|
-
target_uid: data.user_id || '',
|
|
212
|
-
target_uin: data.user_id || '',
|
|
211
|
+
target_uid: (data.user_id + '') || '',
|
|
212
|
+
target_uin: (data.user_id + '') || '',
|
|
213
213
|
duration: data.duration,
|
|
214
214
|
type: data.sub_type,
|
|
215
215
|
};
|
|
@@ -254,8 +254,8 @@ export class OB11Event {
|
|
|
254
254
|
group_id: groupId,
|
|
255
255
|
operator_uid: (data.operator_id + '') || '',
|
|
256
256
|
operator_uin: (data.operator_id + '') || '',
|
|
257
|
-
target_uid: data.user_id || '',
|
|
258
|
-
target_uin: data.user_id || '',
|
|
257
|
+
target_uid: (data.user_id + '') || '',
|
|
258
|
+
target_uin: (data.user_id + '') || '',
|
|
259
259
|
message_id: data.message_id,
|
|
260
260
|
tip_text: '撤回了一条消息',
|
|
261
261
|
};
|
|
@@ -329,7 +329,7 @@ class PluginLoader {
|
|
|
329
329
|
return true;
|
|
330
330
|
}
|
|
331
331
|
if (typeof Fn !== 'function' || !Fn?.prototype?.constructor)
|
|
332
|
-
return
|
|
332
|
+
return true;
|
|
333
333
|
const Class = new Fn();
|
|
334
334
|
if (!Class.name) {
|
|
335
335
|
logger.error(`[${plugin}]${_path ? `${common.getRelPath(_path)}` : ''}[${file}] 插件名称错误`);
|