File size: 574 Bytes
01f823f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- coding: utf-8 -*-
from utils import *
import uvicorn
from fastapi import FastAPI
app = FastAPI()


# 通过fid来获取网盘信息->[] 链接+提取码 /None
@app.get("/getPanInfo")
def getPanInfo(fid:str):
    session.headers = headers
    jsonResp = try_puchase(fid=fid, session=session)
    print(jsonResp)
    panResult = get_pan_info(fid=fid, session=session)  # 每次先尝试购买然后重新打开detail页面查询返回
    print(panResult)
    return panResult

if __name__ == '__main__':
    uvicorn.run(app, host='0.0.0.0', port=7860)