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