32 lines
686 B
SQL
32 lines
686 B
SQL
-- 微信公众号配置(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
|
||
);
|