feat: 新增后端支付模块,支持微信和支付宝
- 新增api/payment/支付服务(微信、支付宝) - 新增api/routers/payment.py支付路由 - 更新database/models.py支付相关模型 - 新增数据库迁移文件(订单表、用户订阅字段) - 更新main.py、requirements.txt、.env.production Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -54,7 +54,7 @@ else:
|
||||
from database import init_db
|
||||
from routers import (
|
||||
websocket, chapters, books, conversations, auth, memoir_state, tasks,
|
||||
user, plans, orders, faqs, quota, feedback, legal
|
||||
user, plans, orders, faqs, quota, feedback, legal, payment
|
||||
)
|
||||
|
||||
# 初始化数据库
|
||||
@@ -152,7 +152,8 @@ app.include_router(memoir_state.router)
|
||||
app.include_router(tasks.router) # 任务状态路由
|
||||
app.include_router(user.router) # 用户相关路由
|
||||
app.include_router(plans.router) # 订阅计划路由
|
||||
app.include_router(orders.router) # 订单路由
|
||||
app.include_router(orders.router) # 订单路由(旧接口,兼容保留)
|
||||
app.include_router(payment.router) # 支付路由(微信支付、支付宝)
|
||||
app.include_router(faqs.router) # 常见问题路由
|
||||
app.include_router(quota.router) # 配额检查路由
|
||||
app.include_router(feedback.router) # 反馈路由
|
||||
|
||||
Reference in New Issue
Block a user