修复个人中心问题

This commit is contained in:
2026-09-29 18:25:09 +08:00
parent 0dc5c2f075
commit ca4220f92c
44 changed files with 1793 additions and 310 deletions
+4
View File
@@ -40,6 +40,10 @@ func init() {
// 放在操作日志之前注册,保证操作日志能取到 userId。
beego.InsertFilter("*", beego.BeforeRouter, middleware.JWTAuthMiddleware())
// 模块套餐鉴权:租户当前套餐(含单品订单)未开通的模块,其接口直接拒绝。
// 映射与开关见 app.conf 的 plan_module_paths / plan_enforce(默认 warn 只记日志)。
beego.InsertFilter("*", beego.BeforeRouter, middleware.PlanAuthMiddleware())
// 全局操作日志:请求开始采集并异步写入
beego.InsertFilter("*", beego.BeforeRouter, middleware.BeginOperationLog)