update example & set reload False

This commit is contained in:
yyh 2025-03-23 02:05:04 +08:00
parent 9211bcdc50
commit 05fdaa987d
2 changed files with 9 additions and 6 deletions

View File

@ -53,4 +53,4 @@ async def index(request: Request):
# 使用该方法启动应用: uvicorn backend.main:app --host 0.0.0.0 --port 8322
if __name__ == "__main__":
import uvicorn
uvicorn.run("backend.main:app", host=settings.host, port=settings.port, reload=True, log_level=settings.log_level)
uvicorn.run("backend.main:app", host=settings.host, port=settings.port, reload=False, log_level=settings.log_level)

View File

@ -17,11 +17,14 @@ class SMSRecordCreate(BaseModel):
populate_by_name = True
json_schema_extra = {
"example": {
"from": "10086",
"contact_name": "中国移动",
"sms": "您的验证码是123456请在5分钟内完成验证。",
"sim_slot": "SIM1(15012345678)",
"receive_time": "2023-03-15T14:30:00Z"
"from": "10086",
"contact_name": "中国移动",
"phone_area": "86",
"sms": "您的验证码是123456请在5分钟内完成验证。",
"sim_slot": "SIM1(15012345678)",
"sim_sub_id": "sub_id_example",
"device_name": "Device_A",
"receive_time": "2025-03-15T14:30:00Z"
}
}