40 lines
2.5 KiB
SQL
40 lines
2.5 KiB
SQL
SET NAMES utf8mb4;
|
|
|
|
INSERT INTO system_configs (config_key, config_value, value_type, description) VALUES
|
|
('sms.aliyun.endpoint', 'https://dysmsapi.aliyuncs.com', 'string', '阿里云短信 API 地址'),
|
|
('sms.aliyun.access_key_id', '', 'secret', '阿里云 AccessKey ID'),
|
|
('sms.aliyun.access_key_secret', '', 'secret', '阿里云 AccessKey Secret'),
|
|
('sms.aliyun.sign_name', '', 'string', '阿里云短信签名'),
|
|
('sms.aliyun.template_register', '', 'string', '阿里云注册模板 Code'),
|
|
('sms.aliyun.template_login', '', 'string', '阿里云登录模板 Code'),
|
|
('sms.aliyun.template_reset', '', 'string', '阿里云重置密码模板 Code'),
|
|
('sms.aliyun.template_params', '{"code":"{{code}}"}', 'string', '阿里云模板变量 JSON'),
|
|
|
|
('sms.tencent.endpoint', 'https://sms.tencentcloudapi.com', 'string', '腾讯云短信 API 地址'),
|
|
('sms.tencent.secret_id', '', 'secret', '腾讯云 SecretId'),
|
|
('sms.tencent.secret_key', '', 'secret', '腾讯云 SecretKey'),
|
|
('sms.tencent.sdk_app_id', '', 'string', '腾讯云短信 SdkAppId'),
|
|
('sms.tencent.region', 'ap-guangzhou', 'string', '腾讯云短信地域'),
|
|
('sms.tencent.sign_name', '', 'string', '腾讯云短信签名'),
|
|
('sms.tencent.template_register', '', 'string', '腾讯云注册模板 ID'),
|
|
('sms.tencent.template_login', '', 'string', '腾讯云登录模板 ID'),
|
|
('sms.tencent.template_reset', '', 'string', '腾讯云重置密码模板 ID'),
|
|
('sms.tencent.template_params', '["{{code}}"]', 'string', '腾讯云模板参数 JSON'),
|
|
|
|
('sms.huawei.endpoint', '', 'string', '华为云短信 APP 接入地址'),
|
|
('sms.huawei.app_key', '', 'secret', '华为云短信 Application Key'),
|
|
('sms.huawei.app_secret', '', 'secret', '华为云短信 Application Secret'),
|
|
('sms.huawei.sender', '', 'string', '华为云短信签名通道号'),
|
|
('sms.huawei.signature', '', 'string', '华为云短信签名名称'),
|
|
('sms.huawei.template_register', '', 'string', '华为云注册模板 ID'),
|
|
('sms.huawei.template_login', '', 'string', '华为云登录模板 ID'),
|
|
('sms.huawei.template_reset', '', 'string', '华为云重置密码模板 ID'),
|
|
('sms.huawei.template_params', '["{{code}}"]', 'string', '华为云模板参数 JSON'),
|
|
('sms.huawei.status_callback', '', 'string', '华为云短信状态回调地址')
|
|
ON DUPLICATE KEY UPDATE description = VALUES(description), value_type = VALUES(value_type);
|
|
|
|
UPDATE system_configs
|
|
SET description = '短信提供商:aliyun、tencent、huawei、webhook 或 debug'
|
|
WHERE config_key = 'sms.provider';
|
|
|