mirror of
https://github.com/TDSCDMAA/AutoMihoyoBBS.git
synced 2026-06-10 14:12:31 +08:00
format
This commit is contained in:
parent
afc408d803
commit
2c5599e79b
@ -25,9 +25,9 @@ class CloudGenshin:
|
||||
}
|
||||
|
||||
# 分钟转小时
|
||||
def time_conversion(self,minute : int) -> str:
|
||||
h = minute//60
|
||||
s = minute%60
|
||||
def time_conversion(self, minute: int) -> str:
|
||||
h = minute // 60
|
||||
s = minute % 60
|
||||
return f"{h}小时{s}分钟"
|
||||
|
||||
def sign_account(self) -> str:
|
||||
|
||||
@ -164,7 +164,6 @@ class Mihoyobbs:
|
||||
challenge = None
|
||||
header.pop("x-rpc-challenge")
|
||||
time.sleep(random.randint(2, 8))
|
||||
|
||||
else:
|
||||
log.error("签到失败,你的cookie可能已过期,请重新设置cookie。")
|
||||
config.clear_cookies()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user