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

This commit is contained in:
昔念
2026-02-13 22:57:05 +08:00
parent d258274322
commit e5c75f7359
51 changed files with 230 additions and 254 deletions

View File

@@ -48,8 +48,7 @@ func (s *ShinyService) RandShiny(id uint32) *model.ColorfulSkin {
// 执行 Raw SQL 并扫描返回值
dbm(s.Model).
Wheref(`bind_elf_ids @> ?::jsonb`, id).
Wheref(`jsonb_typeof(bind_elf_ids) = ?`, "array").
Where("is_enabled", 1).Scan(&ret)
Wheref(`jsonb_typeof(bind_elf_ids) = ?`, "array").Scan(&ret)
for _, v := range ret {
//print(v.ID)
@@ -76,8 +75,7 @@ func (s *ShinyService) FixShiny(id uint32) *model.ColorfulSkin {
// 执行 Raw SQL 并扫描返回值
dbm(s.Model).
Wheref(`bind_elf_ids @> ?::jsonb`, id).
Wheref(`jsonb_typeof(bind_elf_ids) = ?`, "array").
Where("is_enabled", 1).Scan(&ret)
Wheref(`jsonb_typeof(bind_elf_ids) = ?`, "array").Scan(&ret)
if len(ret) == 0 {
return nil
}