This commit is contained in:
2024-09-12 15:06:58 +08:00
parent 35b8a1c7e7
commit b0eec18ee3
4 changed files with 52 additions and 3 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ def skland_sign_in_thread():
time.sleep(20)
now = datetime.datetime.now()
if now.strftime('%H:%M') == '08:00' and last_run != now.date():
ark_back.skland_sign()
ark_back.skland_sign_new()
last_run = now.date()
except Exception as e:
print(e, traceback.format_exc())
+30 -2
View File
@@ -96,6 +96,11 @@ def get_grant_code(token):
def get_cred(grant):
cred_code_url = 'https://zonai.skland.com/api/v1/user/auth/generate_cred_by_code'
resp = requests.post(cred_code_url, json={
'code': grant,
'kind': 1
}, headers=header_login)
resp = requests.post(cred_code_url, json={
'code': grant,
'kind': 1
@@ -147,7 +152,14 @@ def single_sign(cred_resp):
def new_start():
result_list = []
token_list = ['fqyRkfJrLlkuax8SzFffxc0W', 'i//Ozb2bFsXjxF9ZKgAgVi6K']
token_list = [
# 'fqyRkfJrLlkuax8SzFffxc0W',
'i//Ozb2bFsXjxF9ZKgAgVi6K'
]
token_dict = {
'i//Ozb2bFsXjxF9ZKgAgVi6K': {'cred': 'ytheE5nQW7AU13UJfn3sq4hdvokojwGk', 'token': 'dbfa23414a942e7609ea4008eeeb7fb0', 'userId': '316019'},
'fqyRkfJrLlkuax8SzFffxc0W': {'cred': 'tn0EZDtUrSMu3tXh4wK2VJPionqQnMj4', 'token': 'dbfa23414a942e7609ea4008eeeb7fb0', 'userId': '131957'}
}
for i in token_list:
try:
credit_dict = get_cred_by_token(i)
@@ -157,5 +169,21 @@ def new_start():
print("签到完成!")
def new_start_neo():
token_dict = {
'i//Ozb2bFsXjxF9ZKgAgVi6K': {'cred': 'ytheE5nQW7AU13UJfn3sq4hdvokojwGk',
'token': 'dbfa23414a942e7609ea4008eeeb7fb0', 'userId': '316019'},
'fqyRkfJrLlkuax8SzFffxc0W': {'cred': 'tn0EZDtUrSMu3tXh4wK2VJPionqQnMj4',
'token': 'dbfa23414a942e7609ea4008eeeb7fb0', 'userId': '131957'}
}
for token, credit_dict in token_dict.items():
try:
msg, code = single_sign(credit_dict)
print(f'{msg}: {code}')
except Exception as ex:
print(f'签到失败,原因:{str(ex)}')
print("签到完成!")
if __name__ == '__main__':
new_start()
new_start_neo()
+14
View File
@@ -146,6 +146,20 @@ class ArkHelperBackend:
except Exception as ex:
self.logger.error(f'签到失败,原因:{str(ex)}')
def skland_sign_new(self):
token_dict = {
'i//Ozb2bFsXjxF9ZKgAgVi6K': {'cred': 'ytheE5nQW7AU13UJfn3sq4hdvokojwGk',
'token': 'dbfa23414a942e7609ea4008eeeb7fb0', 'userId': '316019'},
'fqyRkfJrLlkuax8SzFffxc0W': {'cred': 'tn0EZDtUrSMu3tXh4wK2VJPionqQnMj4',
'token': 'dbfa23414a942e7609ea4008eeeb7fb0', 'userId': '131957'}
}
for token, credit_dict in token_dict.items():
try:
msg, code = single_sign(credit_dict)
self.logger.info(f'{msg}: {code}')
except Exception as ex:
self.logger.error(f'签到失败,原因:{str(ex)}')
def update_gacha_data(self):
for phone in self.user_data_dict:
gacha_history_data = self.user_data_dict[phone]['gacha']
+7
View File
@@ -0,0 +1,7 @@
import requests
url = 'http://192.168.195.103:61000/GetFieldData'
r = requests.post(url, {
"field_name": "supported_llm"
}, timeout=10)
print(r.text)