修改日志

This commit is contained in:
hahwu 2026-03-04 15:11:07 +08:00
parent 3afcbdf2eb
commit fa633cf184
2 changed files with 10 additions and 1 deletions

View File

@ -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 {

View File

@ -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()