Arthur-Wu committed this file on 2024-11-21

This commit is contained in:
ieemoo
2024-11-21 15:36:55 +08:00
parent 2bed9e9a69
commit 0469beb719
46 changed files with 919 additions and 150 deletions

View File

@ -97,8 +97,8 @@ class NotificationModule():
"Debug": "7aedbee7239870e3e653748a2889d8bf063c61efa9213c7099bd57476066dc86",
"Formal": "80b026022a28166cfc9eebaf8f6a880cc06f56a14b8803e8d67e7fb3cb05844e"
}
# self.urlInfo = f'https://oapi.dingtalk.com/robot/send?access_token={datainfo["Debug"]}'
self.urlInfo = f'https://oapi.dingtalk.com/robot/send?access_token={datainfo["Formal"]}'
self.urlInfo = f'https://oapi.dingtalk.com/robot/send?access_token={datainfo["Debug"]}'
# self.urlInfo = f'https://oapi.dingtalk.com/robot/send?access_token={datainfo["Formal"]}'
self.ReportUrl = ProCfgData["ReportsURL"]
self.ExecutionEnvironment = ProCfgData["ExecutionEnv"]

View File

@ -30,7 +30,7 @@ class SignatureYM():
return headers
class SignatureYM2():
def __init__(self, Mac= '70:f7:54:07:a6:c0'):
def __init__(self, ShoppingCartMac= '70:f7:54:07:a6:c0'):
def __sission_id():
import random, time
def generate_24_digit_random_integer():
@ -45,7 +45,7 @@ class SignatureYM2():
random_integer = generate_24_digit_random_integer()
return str(random_integer)
self.SessionId = __sission_id()
self.Mac = Mac
self.Mac = ShoppingCartMac
def _headers(self):
headers = {