feat: 增加宠物蛋结果计算和金币检查逻辑
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:
@@ -156,7 +156,7 @@ func (s *EggService) GetEgg() *model.PetInfo {
|
||||
return nil
|
||||
|
||||
}
|
||||
mpets, isshiny := service.NewEggService().GetResult(tt.CurEgg.MalePetID, tt.CurEgg.FeMalePetID)
|
||||
mpets, isshiny := service.NewEggService().GetResult(tt.CurEgg.MalePetID, tt.CurEgg.FeMalePetID,tt.CurEgg.EggID+tt.Data.Intimacy)
|
||||
if mpets == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ func (s *PetService) PetCount(flag int) int {
|
||||
|
||||
func (s *PetService) UPdateFree(ctime uint32, free uint32) {
|
||||
|
||||
s.dbm(s.Model).Where("catch_time", ctime).Data(
|
||||
s.dbm(s.Model).Where("catch_time", ctime).Where("is_sale", 0).Data(
|
||||
|
||||
"free", free,
|
||||
).Update()
|
||||
|
||||
Reference in New Issue
Block a user