refactor(config): 移除登录端口配置和相关功能

移除LoginPort配置项,注释掉相关代码逻辑

feat(admin): 添加版本查询接口

新增Version接口用于获取当前版本信息

refactor(login): 禁用注册服务

注释掉reg()函数调用,禁用登录相关的注册服务

refactor(deploy): 更新文件下载逻辑

修改自动化部署流程中的文件下载地址,使用新的配置域名

chore(utils): 添加最新逻辑文件获取工具

添加utils.GetLatestLogicFile方法用于获取最新的逻辑文件
```
This commit is contained in:
昔念
2026-01-28 23:28:25 +08:00
parent 2f94636d5f
commit e37d5a4d80
8 changed files with 109 additions and 30 deletions

View File

@@ -1 +1,21 @@
package admin
import (
"blazing/common/utils"
"blazing/cool"
"context"
"github.com/gogf/gf/v2/frame/g"
)
type CurVersionReq struct {
g.Meta `path:"/version" method:"POST"`
Authorization string `json:"Authorization" in:"header"`
}
// Logout BaseCommLogout 方法
func (c *BaseCommController) Version(ctx context.Context, req *CurVersionReq) (res *cool.BaseRes, err error) {
filename, _ := utils.GetLatestLogicFile("public")
res = cool.Ok(filename)
return
}