mirror of
https://github.com/CHERWING/CHERWIN_SCRIPTS.git
synced 2024-11-22 09:04:11 +08:00
Update JJJHYZX.py
This commit is contained in:
parent
ea0b9d0ab2
commit
a112398e6f
13
JJJHYZX.py
13
JJJHYZX.py
@ -12,12 +12,7 @@ import random
|
|||||||
import time
|
import time
|
||||||
from datetime import datetime, time as times
|
from datetime import datetime, time as times
|
||||||
import requests
|
import requests
|
||||||
from requests.packages.urllib3.exceptions import InsecureRequestWarning
|
|
||||||
|
|
||||||
# import CHERWIN_TOOLS
|
|
||||||
# 禁用安全请求警告
|
|
||||||
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
|
|
||||||
#
|
|
||||||
IS_DEV = False
|
IS_DEV = False
|
||||||
if os.path.isfile('DEV_ENV.py'):
|
if os.path.isfile('DEV_ENV.py'):
|
||||||
import DEV_ENV
|
import DEV_ENV
|
||||||
@ -112,7 +107,7 @@ class RUN:
|
|||||||
|
|
||||||
def invited(self):
|
def invited(self):
|
||||||
act_name = '助力作者'
|
act_name = '助力作者'
|
||||||
Log(f'\n====== {act_name} ======')
|
# print(f'\n====== {act_name} ======')
|
||||||
json_data = {
|
json_data = {
|
||||||
"inviterMobile": base64.b64decode(b'MTc1MjE1NzE5MDU=').decode('utf-8'),
|
"inviterMobile": base64.b64decode(b'MTc1MjE1NzE5MDU=').decode('utf-8'),
|
||||||
"activityId": "2",
|
"activityId": "2",
|
||||||
@ -121,10 +116,10 @@ class RUN:
|
|||||||
url = f"{self.baseUrl}zanmall_diy/ma/invitation/invitee/invited"
|
url = f"{self.baseUrl}zanmall_diy/ma/invitation/invitee/invited"
|
||||||
response = self.make_request(url,data=json_data)
|
response = self.make_request(url,data=json_data)
|
||||||
if response.get('success', False):
|
if response.get('success', False):
|
||||||
Log(f'> {act_name}成功!✅')
|
# print(f'> {act_name}成功!✅')
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
print(f'> {act_name}失败❌:{response}')
|
# print(f'> {act_name}失败❌:{response}')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def get_Checkinlist(self):
|
def get_Checkinlist(self):
|
||||||
@ -302,7 +297,7 @@ export SCRIPT_UPDATE = 'False' 关闭脚本自动更新,默认开启
|
|||||||
✨✨✨ @Author CHERWIN✨✨✨
|
✨✨✨ @Author CHERWIN✨✨✨
|
||||||
''')
|
''')
|
||||||
local_script_name = os.path.basename(__file__)
|
local_script_name = os.path.basename(__file__)
|
||||||
local_version = '2024.05.22'
|
local_version = '2024.05.24'
|
||||||
if IS_DEV:
|
if IS_DEV:
|
||||||
import_Tools()
|
import_Tools()
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user