diff --git a/src/push/dingtalk.ts b/src/push/dingtalk.ts index 6d0d82a..d473b8d 100644 --- a/src/push/dingtalk.ts +++ b/src/push/dingtalk.ts @@ -65,10 +65,10 @@ export class Dingtalk implements Send { this.SECRET = DINGTALK_SECRET Debugger('DINGTALK_ACCESS_TOKEN: %s , DINGTALK_SECRET: %s', this.ACCESS_TOKEN, this.SECRET) if (!this.ACCESS_TOKEN) { - throw new Error('ACCESS_TOKEN 是必须的!') + throw new Error('DINGTALK_ACCESS_TOKEN 是必须的!') } if (!this.SECRET) { - warn('未提供 SECRET !') + warn('未提供 DINGTALK_SECRET !') } } diff --git a/src/push/server-chan-v3.ts b/src/push/server-chan-v3.ts index fd4e933..c850578 100644 --- a/src/push/server-chan-v3.ts +++ b/src/push/server-chan-v3.ts @@ -68,11 +68,11 @@ export class ServerChanV3 implements Send { this.sendkey = sendkey Debugger('set sendkey: "%s"', sendkey) if (!this.sendkey) { - throw new Error('sendkey 是必须的!') + throw new Error('SERVER_CHAN_V3_SENDKEY 是必须的!') } this.uid = this.sendkey.match(/^sctp(\d+)t/)?.[1] if (!this.uid) { - throw new Error('sendkey 不合法!') + throw new Error('SERVER_CHAN_V3_SENDKEY 不合法!') } }