41 lines
1.3 KiB
SQL
41 lines
1.3 KiB
SQL
-- Salon 短信验证码模板编码映射调整
|
||
-- 版本:0.0.1
|
||
-- 说明:MessageHub 已配置阿里云 100001-100005 与 Spug SPUG_SMS_VERIFY_1-4 模板。
|
||
-- 阿里云短信认证通道 ID:314055468907909120。
|
||
|
||
START TRANSACTION;
|
||
|
||
UPDATE t_messagehub_push_config
|
||
SET template_code = CASE scene_code
|
||
WHEN 'USER_REGISTER_SMS_CODE' THEN '100001'
|
||
WHEN 'USER_LOGIN_SMS_CODE' THEN '100001'
|
||
WHEN 'USER_RESET_PASSWORD_SMS_CODE' THEN '100003'
|
||
WHEN 'USER_BIND_PHONE_SMS_CODE' THEN '100004'
|
||
WHEN 'USER_CHANGE_PHONE_SMS_CODE' THEN '100002'
|
||
WHEN 'USER_CHANGE_PASSWORD_SMS_CODE' THEN '100003'
|
||
END,
|
||
channel_id = 314055468907909120,
|
||
send_method = 'ALIYUN_SMS_VERIFY',
|
||
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, channel_id, send_method
|
||
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;
|