Skip to content

Commit

Permalink
fix: 循环依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Jan 1, 2024
1 parent 58a106d commit 63ff05b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/adapters/dingtalk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ export default class DingtalkAdapter extends Adapter<'dingtalk'>{
[version==='V12'?'type':'post_type']: event,
version: version,
self:{
platform:'qq',
platform:'dingtalk',
user_id: data.self_id
},
detail_type: data.message_type||data.notice_type||data.request_type,
platform: 'qq',
platform: 'dingtalk',
time:data.timestamp,
...data,
}
Expand Down
9 changes: 7 additions & 2 deletions src/adapters/wechat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,20 @@ export default class WechatAdapter extends Adapter<'wechat'>{
[version==='V12'?'type':'post_type']: event,
version: version,
self:{
platform:'qq',
platform:'wechat',
user_id: data.self_id
},
detail_type: data.message_type||data.notice_type||data.request_type,
platform: 'qq',
platform: 'wechat',
group:data.group?.info,
member:data.member?.info,
friend:data.friend?.info,
time:data.timestamp,
...data,
}
delete result.bot
delete result.c
delete result.parser
return result
}
async start(uin:string){
Expand Down

0 comments on commit 63ff05b

Please sign in to comment.