配置优化

This commit is contained in:
hahwu 2026-01-13 15:28:39 +08:00
parent 48ddddb680
commit 9f8e2460ac
2 changed files with 7 additions and 1 deletions

View File

@ -184,7 +184,7 @@ func GetStringValue(a interface{}, key string) string {
if v == nil { if v == nil {
return "" return ""
} }
String(v) return String(v)
} }
return "" return ""
} }

View File

@ -2,6 +2,7 @@ package test
import ( import (
"fmt" "fmt"
playroomCfg "server/conf/playroom"
userCfg "server/conf/user" userCfg "server/conf/user"
"testing" "testing"
) )
@ -10,3 +11,8 @@ func Test(t *testing.T) {
i := userCfg.GetEnergyMulByLv(1) i := userCfg.GetEnergyMulByLv(1)
fmt.Println(i) fmt.Println(i)
} }
func TestGetOrderItemByGrade(t *testing.T) {
itemId := playroomCfg.GetOrderItemByGrade(2)
fmt.Println(itemId)
}