rogerxavier
commited on
Commit
•
1b214d9
1
Parent(s):
4df08f9
Update api.py
Browse files
api.py
CHANGED
@@ -275,3 +275,17 @@ def get_image(directory: str = "", file_name: str = Path(...)):
|
|
275 |
|
276 |
file_path = os.path.join(image_dir, file_name)
|
277 |
return FileResponse(file_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
|
276 |
file_path = os.path.join(image_dir, file_name)
|
277 |
return FileResponse(file_path)
|
278 |
+
|
279 |
+
|
280 |
+
|
281 |
+
async def bili_status()->bool:
|
282 |
+
credential = Credential(sessdata=sessdata,
|
283 |
+
bili_jct=bili_jct,
|
284 |
+
buvid3=buvid3)
|
285 |
+
isValid = await credential.check_valid()
|
286 |
+
return isValid
|
287 |
+
#查看账号状态--
|
288 |
+
@app.get("/account_status")
|
289 |
+
async def get_bili_status()->bool:
|
290 |
+
return await bili_status()
|
291 |
+
|