feat: 增加宠物蛋结果计算和金币检查逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-18 11:14:55 +08:00
committed by cnb
parent e7098e3777
commit e2ac5a6325
4 changed files with 14 additions and 4 deletions

View File

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