admin/sql/migrate_wechat_mp_other_config.sql
2026-07-01 16:18:43 +08:00

32 lines
686 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 微信公众号配置(t_system_other_config)
-- 字段映射:AppKey=AppId,AppSecret=Secret,Remark=Token,BaseUrl=OAuthRedirectBase
-- 请在管理端「系统 → 其他配置」填写真实 AppId / AppSecret / Token,勿将密钥提交到 Git。
INSERT INTO `t_system_other_config` (
`ConfigCode`,
`ConfigName`,
`Enabled`,
`BaseUrl`,
`AppKey`,
`AppSecret`,
`Remark`,
`TimeoutSeconds`,
`IsDeleted`,
`CreateUserId`
)
SELECT
'wechat_mp',
'微信公众号',
1,
'https://oms.nanafa.com',
'',
'',
'',
30,
0,
0
FROM DUAL
WHERE NOT EXISTS (
SELECT 1 FROM `t_system_other_config` WHERE `ConfigCode` = 'wechat_mp' AND `IsDeleted` = 0
);