李莎 2 anni fa
parent
commit
f57f5522e4
3 ha cambiato i file con 1 aggiunte e 8 eliminazioni
  1. 0 7
      MyUtils/Dingtalk.py
  2. 0 1
      config.json
  3. 1 0
      requirements.txt

+ 0 - 7
MyUtils/Dingtalk.py

@@ -1,7 +0,0 @@
-from  dingtalkchatbot.chatbot import DingtalkChatbot
-
-def send_message(message,dingtalk,mobiles):
-    webhook = dingtalk
-    xiaoding = DingtalkChatbot(webhook)
-    xiaoding.send_text(msg=message,at_mobiles=[mobiles],is_auto_at=False)
-    return

+ 0 - 1
config.json

@@ -12,5 +12,4 @@
   },
   "building": ["4403070011","1101010007"],
   "set_time": "17:56:00"
-
 }

+ 1 - 0
requirements.txt

@@ -1,3 +1,4 @@
 requests==2.27.1
+pymysql==1.0.2
 dbutils==2.0.2
 pytz==2021.1