Commit afbfc376 authored by 张彦钊's avatar 张彦钊

add

parent be1f58fb
.idea/
\ No newline at end of file
......@@ -23,6 +23,8 @@ token_dict = {
'access_token': "ca4ca402653c7fe6011c18ff5ac385b2b0f4ab6cab61c545f09f4d8830db6870"},
"mentha-tapir-answer": {'secret': "SECba5212dadad3794b3da51c903c828f60ab8342897af2675f1f48fceb8858eb5c",
'access_token': "df546521ce46bfb35025ca266efc2d7e8d708d1c8ada9b15ae487786ad06ad12"},
"graces-tapir-card": {'secret': "SECba5212dadad3794b3da51c903c828f60ab8342897af2675f1f48fceb8858eb5c",
'access_token': "9e5c7d5b6249ca1d968bbf7dc9dd9caf0f8ab4ea37b18337b33746cad5a7a5e6"},
"mentha-tapir-tractate": {'secret': "SECba5212dadad3794b3da51c903c828f60ab8342897af2675f1f48fceb8858eb5c",
'access_token': "df546521ce46bfb35025ca266efc2d7e8d708d1c8ada9b15ae487786ad06ad12"},
}
......@@ -69,8 +71,11 @@ def len_list_and_send_msg(redis_clint, key_name, rules, per_sec=10):
res = redis_clint.llen(key_name)
# print(key_name,res)
str_res = rules.parse(key_name, res, per_sec=per_sec)
if str_res:
send_msg_to_dingtalk(str_res,mobiles=["13552564745","17813268931","19566173658"], secret=token_dict[key_name]['secret'],
if str_res and key_name != "graces-tapir-card":
send_msg_to_dingtalk(str_res,mobiles=["13552564745","17813268931"], secret=token_dict[key_name]['secret'],
access_token=token_dict[key_name]['access_token'])
elif str_res and key_name == "graces-tapir-card":
send_msg_to_dingtalk(str_res, mobiles=["19566173658"], secret=token_dict[key_name]['secret'],
access_token=token_dict[key_name]['access_token'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment