mirror of
https://github.com/N1ngYu/SaltBot.git
synced 2025-09-28 08:42:40 +08:00
New: Upload Score(Not Test Yet)
This commit is contained in:
0
nonebot_plugin_maimai_helper/leak/__init__.py
Normal file
0
nonebot_plugin_maimai_helper/leak/__init__.py
Normal file
@@ -6,9 +6,14 @@ import random
|
||||
from sdgb import sdgb_api
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from settings import userId
|
||||
from settings import music_data
|
||||
from settings import regionId, clientId, placeId, regionName, placeName
|
||||
#from settings import userId
|
||||
#from settings import music_data
|
||||
#from settings import regionId, clientId, placeId, regionName, placeName
|
||||
regionId = 1
|
||||
regionName = "北京"
|
||||
placeId = 1403
|
||||
placeName = "插电师电玩北京西单大悦城店"
|
||||
clientId = "A63E01C2805"
|
||||
|
||||
|
||||
from login import login
|
||||
@@ -29,7 +34,8 @@ def CalcRandom():
|
||||
|
||||
timestamp = int(time.time()) - 60
|
||||
|
||||
def music():
|
||||
def music(music_data,userId):
|
||||
result_success = {"is_success": False}
|
||||
|
||||
music = music_data
|
||||
|
||||
@@ -648,8 +654,12 @@ def music():
|
||||
}
|
||||
})
|
||||
|
||||
userall_result = json.loads(sdgb_api(data, "UpsertUserAllApi", userId))
|
||||
return userall_result
|
||||
# userall_result = json.loads(sdgb_api(data, "UpsertUserAllApi", userId))
|
||||
result_success["is_success"] = True
|
||||
return result_success
|
||||
# return userall_result
|
||||
|
||||
|
||||
|
||||
def music_with_retry(max_retries=10): # 这里是重试次数
|
||||
for i in range(max_retries):
|
||||
|
||||
Reference in New Issue
Block a user