更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

+1 -12
View File
@@ -11,34 +11,23 @@ import (
)
func main() {
// 初始化数据库
models.Init(version.Version)
// 启用请求体复制(允许多次读取请求体)
beego.BConfig.CopyRequestBody = true
// 设置最大请求体大小(10MB,足够登录请求使用)
beego.BConfig.MaxMemory = 10 << 20 // 10MB
beego.BConfig.MaxMemory = 10 << 20
// 静态资源:映射 /uploads 到本地 uploads 目录,供前端访问上传文件
beego.SetStaticPath("/uploads", "uploads")
// 官网模板静态资源:themes/{code}/static/ 下的图片/JS/CSS
beego.SetStaticPath("/themes", "themes")
// 启动日程提醒定时任务
services.StartReminderScheduler(make(chan struct{}))
// 启动自有域名证书续期任务(到期前 30 天自动续签 Let's Encrypt 证书)
services.StartCertRenewScheduler(make(chan struct{}))
// 启动回款逾期联动任务(回款逾期 → 合同「异常」→ 关联项目「异常」)
services.StartPaybackOverdueScheduler(make(chan struct{}))
// 启动支付补偿任务(超时关单 / 业务订单同步重试,5 分钟一轮)
payment.StartPaymentScheduler(make(chan struct{}))
// 保留 dev 模式原有的 `[D] router.go` 访问日志样式,
// 但改走带探针过滤的 console 适配器(见 middleware/security_probe.go)。
beego.BConfig.Log.Outputs = map[string]string{"filterconsole": ""}
beego.Run()