优化打点日志
This commit is contained in:
parent
47de734e17
commit
2cbc354cb3
@ -6,7 +6,6 @@ import (
|
||||
"server/game/mod/item"
|
||||
GoUtil "server/game_util"
|
||||
"server/msg"
|
||||
"server/pkg/github.com/name5566/leaf/log"
|
||||
)
|
||||
|
||||
type FriendTreasureMod struct {
|
||||
@ -73,7 +72,6 @@ func (f *FriendTreasureMod) Flip(pos int) ([]*item.Item, int64, error) {
|
||||
}
|
||||
info.Status = GAME_STATUS_START
|
||||
if info.Uid != 0 {
|
||||
log.Debug("uid:%v", info.Uid)
|
||||
f.Uids = append(f.Uids, info.Uid)
|
||||
}
|
||||
if info.Type == FRIEND_TYPE_ALIVE {
|
||||
|
||||
@ -2,7 +2,9 @@ package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
friendTreasureCfg "server/conf/friend_treasure"
|
||||
"server/game"
|
||||
GoUtil "server/game_util"
|
||||
"server/msg"
|
||||
"testing"
|
||||
|
||||
@ -54,3 +56,10 @@ func TestFriendBackData(t *testing.T) {
|
||||
p1.FriendLogBackData()
|
||||
p1.FriendCardBackData()
|
||||
}
|
||||
|
||||
func TestFriendTreasureInit(t *testing.T) {
|
||||
probMap := friendTreasureCfg.GetChestProb()
|
||||
prob := GoUtil.RandMap(probMap)
|
||||
items := friendTreasureCfg.GetChestItems(prob)
|
||||
fmt.Printf("Prob: %v, Items: %v\n", prob, items)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user