```
feat(config): 添加服务器调试模式配置和塔配置重构 - 在ServerList结构体中添加IsDebug字段用于调试模式标识 - 修改GetServerInfoList函数增加isdebug参数支持 - 移除硬编码的rpcaddr本地地址配置 - 重构塔配置模型,将tower_500和tower_600合并到tower_110
This commit is contained in:
@@ -3,8 +3,6 @@ package service
|
||||
import (
|
||||
"blazing/cool"
|
||||
"blazing/modules/config/model"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
)
|
||||
|
||||
type TalkConfigService struct {
|
||||
@@ -23,11 +21,7 @@ func NewTalkConfigService() *TalkConfigService {
|
||||
func (s *TalkConfigService) GetCache(flag int) model.MineralCollectionConfig {
|
||||
|
||||
var config model.MineralCollectionConfig
|
||||
cool.DBM(s.Model).Where("type", flag).Cache(gdb.CacheOption{
|
||||
// Duration: time.Hour,
|
||||
|
||||
Force: false,
|
||||
}).Scan(&config)
|
||||
dbm(s.Model).Where("type", flag).Scan(&config)
|
||||
return config
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user