From 94391abe5f426bb5b56b406d149fdf7a943166de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <1@72wo.cn> Date: Tue, 30 Dec 2025 01:23:50 +0800 Subject: [PATCH] =?UTF-8?q?```=20feat(config):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E5=BC=82=E8=89=B2=E5=8A=9F=E8=83=BD=E5=B9=B6?= =?UTF-8?q?=E9=87=8D=E6=9E=84=E5=BC=82=E8=89=B2=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 FixShiny 方法用于固定获取异色效果 - 重命名 Args 方法为 RandShiny 以明确功能 - 添加 utils 包依赖用于数据转换 feat(model): 扩展宠物异色相关方法 - 为 PetInfo 结构体添加 FixShiny 方法 - 修改 RandShiny 方法逻辑,确保异色信息正确添加 refactor(service): 优化宠物异色获取逻辑 - 在 player service 中使用 RandShiny 替代原 Args 方法 - 在 pet fusion controller 中使用 FixShiny 替代 RandShiny refactor(xmlres): 简化文件初始化条件判断 - 移除 EffectMAP1 中 StarLevel 的判断条件 - 保持原有的状态和索引判断逻辑 feat(admin): 为管理员宠物获取功能添加固定异色支持 - 在 admin monster_get controller 中调用 FixShiny 方法 - 确保通过管理员功能获取的宠物具有固定异色效果 ``` --- help/脏数据查询.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 help/脏数据查询.sql diff --git a/help/脏数据查询.sql b/help/脏数据查询.sql new file mode 100644 index 000000000..3a9ed8721 --- /dev/null +++ b/help/脏数据查询.sql @@ -0,0 +1,11 @@ +SELECT * + +FROM pet +WHERE + -- 核心条件:两个CatchTime值不相等,或data中无CatchTime字段 + ( + -- 1. 类型统一后对比(catch_time和data->CatchTime都转int4) + (data->>'CatchTime')::int4 != catch_time::int4 + -- 2. data中没有CatchTime字段(也需要筛选) + OR NOT jsonb_exists(data, 'CatchTime') + ); \ No newline at end of file