-精简HTML结构,优化`account.html`,`apple-card/account.html`,和`t-mall-game/account.html`中iframe的布局。 - 调整CSS样式,以增强用户界面的一致性和可读性。 - 优化`account_history.html`中的表格和搜索栏的样式与对齐。 fix(controller): 修正新增控制器参数顺序 - 修正`addController.go`中的参数顺序,确保交易类型正确传递给服务层。 - 更新数据库插入操作,确保UUID正确分配给新记录,防止SQL错误。
39 lines
774 B
Go
39 lines
774 B
Go
package main
|
|
|
|
import (
|
|
_ "boss/internal/models"
|
|
_ "boss/internal/routers"
|
|
|
|
"github.com/beego/beego/v2/core/logs"
|
|
"github.com/beego/beego/v2/server/web"
|
|
_ "github.com/beego/beego/v2/server/web/session/redis"
|
|
_ "github.com/go-sql-driver/mysql"
|
|
)
|
|
|
|
func main() {
|
|
RegisterLogs()
|
|
web.Run()
|
|
}
|
|
|
|
// RegisterLogs 注册日志信息
|
|
func RegisterLogs() {
|
|
config := `{
|
|
"filename": "./logs/app.log",
|
|
"maxlines": 0,
|
|
"maxsize": 0,
|
|
"daily": true,
|
|
"maxdays": 7,
|
|
"perm": "0644",
|
|
"separate": ""
|
|
}`
|
|
_ = logs.SetLogger(logs.AdapterFile, config)
|
|
logs.SetLevel(logs.LevelWarning)
|
|
f := &logs.PatternLogFormatter{
|
|
Pattern: "%F:%n|%w%t>> %m",
|
|
WhenFormat: "2006-01-02",
|
|
}
|
|
logs.RegisterFormatter("pattern", f)
|
|
_ = logs.SetGlobalFormatter("pattern")
|
|
logs.Async()
|
|
}
|