Commit 113d711b by fanxun

目录结构调整

parent c2f0341b
from common import db
......
print('hello')
\ No newline at end of file
import requests
import json
from config import BaseConfig
def dingTalk(webhook, message):
"""发送消息到钉钉群"""
data = {'msgtype': 'text', 'text': {"content": message},
'at': {'isAtAll': True}}
post_data = json.dumps(data)
response = requests.post(webhook, headers=BaseConfig.headers, data=post_data)
return response.text
\ No newline at end of file
import requests,hashlib
import json
from config import BaseConfig
import hashlib
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad
from base64 import encodebytes
def dingTalk(webhook, message):
"""发送消息到钉钉群"""
data = {'msgtype': 'text', 'text': {"content": message},
'at': {'isAtAll': True}}
post_data = json.dumps(data)
response = requests.post(webhook, headers=BaseConfig.headers, data=post_data)
return response.text
# 加密类
class Encryption:
......
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