Skip to content

Commit

Permalink
chore: 修改 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen committed Nov 9, 2024
1 parent a481165 commit d75bf15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/01-example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ export async function batchPushAllInOne(title: string, desp?: string): Promise<P
PUSH_PLUS_TOKEN: env.PUSH_PLUS_TOKEN,
})
pushs.push(pushplus.send(title, desp, {
template: env.PUSH_PLUS_TEMPLATE as PushPlusTemplateType || 'html',
channel: env.PUSH_PLUS_CHANNEL as PushPlusChannelType || 'wechat',
template: env.PUSH_PLUS_TEMPLATE_TYPE as PushPlusTemplateType || 'html',
channel: env.PUSH_PLUS_CHANNEL_TYPE as PushPlusChannelType || 'wechat',
}))
info('pushplus 推送 已加入推送队列')
} else {
Expand Down Expand Up @@ -199,8 +199,8 @@ export async function batchPushAllInOne(title: string, desp?: string): Promise<P
ONE_BOT_ACCESS_TOKEN: env.ONE_BOT_ACCESS_TOKEN,
})
pushs.push(oneBot.send(title, desp || '', {
message_type: 'group',
group_id: Number(env.ONE_BOT_GROUP_ID),
message_type: 'private',
user_id: Number(env.ONE_BOT_USER_ID),
}))
info('OneBot 推送 已加入推送队列')
} else {
Expand Down

0 comments on commit d75bf15

Please sign in to comment.