diff --git a/docs/scripts/sql/短信模板编码修复_20260906/短信模板编码修复_20260906.sql b/docs/scripts/sql/短信模板编码修复_20260906/短信模板编码修复_20260906.sql new file mode 100644 index 00000000..c8ff7ec0 --- /dev/null +++ b/docs/scripts/sql/短信模板编码修复_20260906/短信模板编码修复_20260906.sql @@ -0,0 +1,30 @@ +-- Salon 短信验证码模板编码修复 +-- 版本:0.0.1 +-- 说明:MessageHub SIT 使用 SPUG_SMS_VERIFY_1,旧编码 SPUG0001 不存在。 + +START TRANSACTION; + +UPDATE t_messagehub_push_config +SET template_code = 'SPUG_SMS_VERIFY_1', + update_time = NOW() +WHERE platform = 'SMS' + AND source_system = 'jayucloud-salon' + AND scene_code IN ( + 'USER_REGISTER_SMS_CODE', + 'USER_LOGIN_SMS_CODE', + 'USER_RESET_PASSWORD_SMS_CODE', + 'USER_BIND_PHONE_SMS_CODE', + 'USER_CHANGE_PHONE_SMS_CODE', + 'USER_CHANGE_PASSWORD_SMS_CODE' + ) + AND is_delete = 0; + +COMMIT; + +SELECT scene_code, template_code +FROM t_messagehub_push_config +WHERE platform = 'SMS' + AND source_system = 'jayucloud-salon' + AND scene_code LIKE 'USER_%_SMS_CODE' + AND is_delete = 0 +ORDER BY scene_code;