1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-20 23:33:24 +08:00
parent f6b583575a
commit 8e3ed21a3a
9 changed files with 105 additions and 28 deletions

View File

@@ -24,7 +24,7 @@ func (s *MapService) GetData(p1 uint32) (ret *model.MapConfig) {
//cacheKey := strings.Join([]string{fmt.Sprintf("%d", p1), fmt.Sprintf("%d", p2)}, ":")
m := dbm_notenable(s.Model)
m.Wheref(`male_pet_ids @> ARRAY[?]::integer[]`, p1).Scan(&ret)
m.Where(`map_id`, p1).Scan(&ret)
return

View File

@@ -44,6 +44,9 @@ func (s *ShinyService) ModifyBefore(ctx context.Context, method string, param g.
return nil
}
func (s *ShinyService) RandShiny(id uint32) *model.ColorfulSkin {
if !grand.Meet(1, 500) {
return nil
}
var ret []model.ColorfulSkin
// 执行 Raw SQL 并扫描返回值