This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 并扫描返回值
|
||||
|
||||
Reference in New Issue
Block a user