rogerxavier commited on
Commit
38bc325
1 Parent(s): 1b214d9

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +21 -1
api.py CHANGED
@@ -288,4 +288,24 @@ async def bili_status()->bool:
288
  @app.get("/account_status")
289
  async def get_bili_status()->bool:
290
  return await bili_status()
291
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
  @app.get("/account_status")
289
  async def get_bili_status()->bool:
290
  return await bili_status()
291
+ #查看账号状态--
292
+
293
+
294
+
295
+
296
+ async def userInfo()->dict:
297
+ credential = Credential(sessdata=sessdata,
298
+ bili_jct=bili_jct,
299
+ buvid3=buvid3
300
+
301
+ userInfo = await user.get_self_info(credential=credential)
302
+ return userInfo
303
+
304
+
305
+ #查看账号信息
306
+ @app.get("/userInfo")
307
+ async def get_userInfo()->dict:
308
+ return await userInfo()
309
+ #查看账号信息
310
+
311
+