修正MessageHub阿里云验证码模板映射
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
-- MessageHub阿里云个人认证模板场景修正_20260706.sql
|
||||
-- 用途:修正 JayuCloud 短信验证码场景与 MessageHub 阿里云个人认证模板的映射。
|
||||
-- 说明:不修改 0.0.1 初始化 SQL;后续环境通过执行本版本化脚本完成配置迭代。
|
||||
|
||||
START TRANSACTION;
|
||||
|
||||
INSERT INTO `t_messagehub_push_config` (
|
||||
`id`,
|
||||
`scene_code`,
|
||||
`scene_name`,
|
||||
`platform`,
|
||||
`msg_type`,
|
||||
`queue_name`,
|
||||
`source_system`,
|
||||
`template_code`,
|
||||
`channel_id`,
|
||||
`send_method`,
|
||||
`enabled`,
|
||||
`remark`,
|
||||
`create_time`,
|
||||
`update_time`,
|
||||
`is_delete`
|
||||
) VALUES
|
||||
(313931273555137001, 'USER_REGISTER_SMS_CODE', '用户注册验证码', 'SMS', 'VERIFICATION', 'messagehub.ingress.queue', 'jayucloud', '100001', NULL, 'OTHER', 1, '注册功能发送验证码时使用 MessageHub 阿里云登录/注册模板', NOW(), NOW(), 0),
|
||||
(313931273555137002, 'USER_LOGIN_SMS_CODE', '手机号登录验证码', 'SMS', 'VERIFICATION', 'messagehub.ingress.queue', 'jayucloud', '100001', NULL, 'OTHER', 1, '手机号验证码登录时使用 MessageHub 阿里云登录/注册模板', NOW(), NOW(), 0),
|
||||
(313931273555137003, 'USER_RESET_PASSWORD_SMS_CODE', '找回密码验证码', 'SMS', 'VERIFICATION', 'messagehub.ingress.queue', 'jayucloud', '100003', NULL, 'OTHER', 1, '找回密码时使用 MessageHub 阿里云重置密码模板', NOW(), NOW(), 0),
|
||||
(313931273555137004, 'USER_BIND_PHONE_SMS_CODE', '绑定手机号验证码', 'SMS', 'VERIFICATION', 'messagehub.ingress.queue', 'jayucloud', '100004', NULL, 'OTHER', 1, '绑定手机号时使用 MessageHub 阿里云绑定新手机号模板', NOW(), NOW(), 0),
|
||||
(313931273555137005, 'USER_CHANGE_PHONE_SMS_CODE', '修改手机号验证码', 'SMS', 'VERIFICATION', 'messagehub.ingress.queue', 'jayucloud', '100002', NULL, 'OTHER', 1, '修改手机号时使用 MessageHub 阿里云修改绑定手机号模板', NOW(), NOW(), 0),
|
||||
(313931273555137006, 'USER_CHANGE_PASSWORD_SMS_CODE', '修改密码验证码', 'SMS', 'VERIFICATION', 'messagehub.ingress.queue', 'jayucloud', '100005', NULL, 'OTHER', 1, '修改密码前验证当前绑定手机号时使用 MessageHub 阿里云验证绑定手机号模板', NOW(), NOW(), 0)
|
||||
ON DUPLICATE KEY UPDATE
|
||||
`scene_name` = VALUES(`scene_name`),
|
||||
`platform` = VALUES(`platform`),
|
||||
`msg_type` = VALUES(`msg_type`),
|
||||
`queue_name` = VALUES(`queue_name`),
|
||||
`source_system` = VALUES(`source_system`),
|
||||
`template_code` = VALUES(`template_code`),
|
||||
`channel_id` = VALUES(`channel_id`),
|
||||
`send_method` = VALUES(`send_method`),
|
||||
`enabled` = VALUES(`enabled`),
|
||||
`remark` = VALUES(`remark`),
|
||||
`update_time` = NOW(),
|
||||
`is_delete` = 0;
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user