mirror of
https://github.com/CHERWING/CHERWIN_SCRIPTS.git
synced 2024-11-22 09:04:11 +08:00
Update CHERWIN_TOOLS.py
This commit is contained in:
parent
3fc0138f32
commit
c3b612b858
@ -11,7 +11,7 @@ import requests
|
|||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
NOW_TOOLS_VERSION = '2024.05.23'
|
NOW_TOOLS_VERSION = '2024.05.26'
|
||||||
if os.path.isfile('DEV_ENV.py'):
|
if os.path.isfile('DEV_ENV.py'):
|
||||||
import DEV_ENV
|
import DEV_ENV
|
||||||
IS_DEV = True
|
IS_DEV = True
|
||||||
@ -351,7 +351,7 @@ def CHECK():
|
|||||||
if 'code' in CHERWIN_SCRIPT_CONFIG:
|
if 'code' in CHERWIN_SCRIPT_CONFIG:
|
||||||
CHERWIN_SCRIPT_CONFIG = None
|
CHERWIN_SCRIPT_CONFIG = None
|
||||||
TOOLS_VERSION = CHERWIN_SCRIPT_CONFIG.get('TOOLS_VERSION', NOW_TOOLS_VERSION)
|
TOOLS_VERSION = CHERWIN_SCRIPT_CONFIG.get('TOOLS_VERSION', NOW_TOOLS_VERSION)
|
||||||
|
|
||||||
if CHECK_UPDATE_NEW(NOW_TOOLS_VERSION, TOOLS_VERSION, server_script_url, TOOLS_NAME):
|
if CHECK_UPDATE_NEW(NOW_TOOLS_VERSION, TOOLS_VERSION, server_script_url, TOOLS_NAME):
|
||||||
print('更新脚本完成')
|
print('更新脚本完成')
|
||||||
# print(f'重新检测[{TOOLS_NAME}]版本')
|
# print(f'重新检测[{TOOLS_NAME}]版本')
|
||||||
@ -433,8 +433,9 @@ def YDXQ_SIGN():
|
|||||||
sign_hash = hashlib.md5(sign_string.encode()).hexdigest()
|
sign_hash = hashlib.md5(sign_string.encode()).hexdigest()
|
||||||
return sign_hash, n
|
return sign_hash, n
|
||||||
|
|
||||||
def HXEK_SIGN(memberId):
|
def HXEK_SIGN(memberId,appid):
|
||||||
appid = "wxa1f1fa3785a47c7d"
|
|
||||||
|
# appid = "wxa1f1fa3785a47c7d"
|
||||||
secret = 'damogic8888'
|
secret = 'damogic8888'
|
||||||
# 获取GMT+8的当前时间戳
|
# 获取GMT+8的当前时间戳
|
||||||
timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user