Add FastAPI wechat app: config, wechat handler, run scripts, requirements, env template

This commit is contained in:
gjm committed 2026-09-25 20:58:11 +08:00
1 parent b193b29e3a
commit a2185104ad
8 files changed
+249 -7

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
"""
本地开发启动脚本
使用方法:
python run_local.py
或者直接用 uvicorn:
uvicorn wechat:app --reload --host 127.0.0.1 --port 8000
"""
import uvicorn
if __name__ == "__main__":
uvicorn.run(
"wechat:app",
host="127.0.0.1",
port=8000,
reload=True, # 代码改动自动重启,开发用
)