修改日志
This commit is contained in:
parent
3afcbdf2eb
commit
fa633cf184
@ -33,7 +33,8 @@ var AdminFuncMap = map[string]func([]interface{}) error{
|
||||
func AdminProcess(Func string, args []interface{}) {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
GoUtil.SendFeishuFatal(0, Func, fmt.Sprintf("fatal : %s", r))
|
||||
log.Error("uid : %d, func : %s, fatal : %s", 0, Func, r)
|
||||
//GoUtil.SendFeishuFatal(0, Func, fmt.Sprintf("fatal : %s", r))
|
||||
}
|
||||
}()
|
||||
if f, ok := AdminFuncMap[Func]; ok {
|
||||
|
||||
@ -94,10 +94,18 @@ func TestRandInt(t *testing.T) {
|
||||
func TestEndless(t *testing.T) {
|
||||
p1 := new(game.Player)
|
||||
p1.InitPlayer("3625212")
|
||||
p1.ZeroUpdate(nil)
|
||||
MailMod := p1.GetMailMod()
|
||||
MailMod.BackData()
|
||||
}
|
||||
|
||||
func TestAdmin(t *testing.T) {
|
||||
player := new(game.Player)
|
||||
player.M_DwUin = 100001
|
||||
player.InitPlayerOnly()
|
||||
player.ZeroUpdate(nil)
|
||||
}
|
||||
|
||||
// 10130 10165
|
||||
func TestNotify(t *testing.T) {
|
||||
titlekey, infokey := notification_cfg.GetFriendApplyNotificationMsg()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user