|
|
@@ -16,6 +16,7 @@ import (
|
|
|
gmwebmodel "roserver/gmweb/model"
|
|
|
"roserver/gmweb/msg"
|
|
|
_ "roserver/gmweb/msg"
|
|
|
+ "roserver/serverproto"
|
|
|
"runtime"
|
|
|
"runtime/debug"
|
|
|
"strconv"
|
|
|
@@ -82,6 +83,15 @@ func main() {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ path := "./config/csv/"
|
|
|
+
|
|
|
+ serverproto.RuneShopGiftsCfgLoad2(path)
|
|
|
+ msg.ResDnyPayInfo = &msg.ResGetPayInfo{
|
|
|
+ GiftList: make([]msg.GiftLists, 0),
|
|
|
+ }
|
|
|
+ for _, v := range serverproto.RuneShopGiftsCfgLoader {
|
|
|
+ msg.ResDnyPayInfo.GiftList = append(msg.ResDnyPayInfo.GiftList, msg.GiftLists{strconv.Itoa(int(v.Id)), v.Name, float64(v.RMB), strconv.Itoa(int(v.Type)), v.Name, -1})
|
|
|
+ }
|
|
|
go func() {
|
|
|
defer func() {
|
|
|
//打印奔溃信息
|