Commit 48c113a0 by tianxuan

添加api请求

parent 5c37ea43
...@@ -2,7 +2,7 @@ from fastapi import FastAPI, Body ...@@ -2,7 +2,7 @@ from fastapi import FastAPI, Body
from pydantic import BaseModel from pydantic import BaseModel
import uvicorn import uvicorn
from modules.shein import Shein from shein import Shein
# from modules.mail163 import get_email_content, check_email_status, get_shein_email_content # from modules.mail163 import get_email_content, check_email_status, get_shein_email_content
# from modules.google import get_google_authenticator_code # from modules.google import get_google_authenticator_code
...@@ -77,3 +77,4 @@ def get_cookie(item: SheinLoginItem = Body(...)): ...@@ -77,3 +77,4 @@ def get_cookie(item: SheinLoginItem = Body(...)):
if __name__ == "__main__": if __name__ == "__main__":
# 启动 # 启动
uvicorn.run(app, host="0.0.0.0", port=9901, reload=False) uvicorn.run(app, host="0.0.0.0", port=9901, reload=False)
print('程序启动')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment