fix: 修复登录空指针及战斗效果
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -109,11 +109,11 @@ func (s *BaseSysLogService) Record(ctx g.Ctx) {
|
||||
"params": baseSysLog.Params,
|
||||
})
|
||||
}
|
||||
func (s *BaseSysLogService) RecordFight(userid uint32, desc string) {
|
||||
func (s *BaseSysLogService) RecordLog(userid uint32, desc string) {
|
||||
|
||||
baseSysLog := model.NewBaseSysLog()
|
||||
baseSysLog.UserID = uint(userid)
|
||||
baseSysLog.Action = "fight"
|
||||
baseSysLog.Action = "panic"
|
||||
|
||||
baseSysLog.Params = desc
|
||||
m := cool.DBM(s.Model)
|
||||
|
||||
@@ -58,8 +58,6 @@ func (s *PetFusionService) Data(p1, p2, rand uint32) uint32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
return 0
|
||||
|
||||
}
|
||||
func (s *PetFusionService) getData(p1, p2 uint32) []model.PetFusion {
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ func (s *EggService) GetEgg() *model.PetInfo {
|
||||
return nil
|
||||
|
||||
}
|
||||
mpets, isshiny := service.NewEggService().GetResult(tt.CurEgg.MalePetID, tt.CurEgg.FeMalePetID,tt.CurEgg.EggID+tt.Data.Intimacy)
|
||||
mpets, isshiny := service.NewEggService().GetResult(tt.CurEgg.MalePetID, tt.CurEgg.FeMalePetID, tt.CurEgg.EggID)
|
||||
if mpets == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user