jd_shell icon indicating copy to clipboard operation
jd_shell copied to clipboard

请问能否按账号分别进行通知呢

Open HarrisonQi opened this issue 3 years ago • 5 comments

想要增加什么样的功能或者哪里存在不足之处呢?

目前的通知是N个账号都通过一个渠道进行通知, 当账号多的时候, 大家会很难找到自己账号的信息.

能否添加功能, 使每个cookie对应自己的通知(拿钉钉通知举例), 如:

# 账号1
Cookie1=xxxxx
# 钉钉通知
export DD_BOT_TOKEN_1="xxx"
export DD_BOT_SECRET_1="xxx"

# 账号二
Cookie2=xxxxx
# 钉钉通知
export DD_BOT_TOKEN_2="xxx"
export DD_BOT_SECRET_2="xxx"

...

当然, 我也想到其他解决方案, 比如为每一个账号创建一个容器... 但账号一多, 容器占用的系统资源也会随之上升....

HarrisonQi avatar Jun 02 '21 08:06 HarrisonQi

这个功能不错,我也想要

Mashiro2000 avatar Jun 02 '21 08:06 Mashiro2000

的确,我开始着手写写😊 


该邮件从移动设备发送

--------------原始邮件-------------- 发件人:"阿航 @.>; 发送时间:2021年6月2日(星期三) 下午4:15 收件人:"lan-tianxiang/jd_shell" @.>; 抄送:"Subscribed @.***>; 主题:[lan-tianxiang/jd_shell] 请问能否按账号分别进行通知呢 (#97)

想要增加什么样的功能或者哪里存在不足之处呢?

目前的通知是N个账号都通过一个渠道进行通知, 当账号多的时候, 大家会很难找到自己账号的信息.

能否添加功能, 使每个cookie对应自己的通知(拿钉钉通知举例), 如:

账号1 Cookie1=xxxxx # 钉钉通知 export DD_BOT_TOKEN_1="xxx" export DD_BOT_SECRET_1="xxx" # 账号二 Cookie2=xxxxx # 钉钉通知 export DD_BOT_TOKEN_2="xxx" export DD_BOT_SECRET_2="xxx" ...

当然, 我也想到其他解决方案, 比如为每一个账号创建一个容器... 但账号一多, 容器占用的系统资源也会随之上升....

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

lan-tianxiang avatar Jun 02 '21 09:06 lan-tianxiang

感谢大佬, nb!

HarrisonQi avatar Jun 03 '21 01:06 HarrisonQi

请问推送为啥不行了,config写了key和编码 push+发送一对多通知消息失败:用户信息状态不合法

发送通知调用API失败!!

HTTPError: Response code 500 (Internal Server Error) at Request. (/root/jd/scripts/node_modules/got/dist/source/as-promise/index.js:117:42) at processTicksAndRejections (internal/process/task_queues.js:95:5) { code: undefined, timings: { start: 1623320679763, socket: 1623320679764, lookup: 1623320679764, connect: 1623320679785, secureConnect: 1623320679832, upload: 1623320679833, response: 1623320679879, end: 1623320679880, error: undefined, abort: undefined, phases: { wait: 1, dns: 0, tcp: 21, tls: 47, request: 1, firstByte: 46, download: 1, total: 117 } } } 您未提供Bark的APP推送BARK_PUSH,取消

qingcheng123 avatar Jun 10 '21 10:06 qingcheng123

弄好了么,非常需要这个功能

zqh2333 avatar Jun 12 '21 02:06 zqh2333