Commit 98950a7e authored by 邓超's avatar 邓超

fix: 修改消息平台提交方案配置如果没有选择模板默认提交第一个模板

parent 46494dbc
Pipeline #52041 passed with stages
in 10 minutes 46 seconds
......@@ -214,7 +214,7 @@ const EditModal = props => {
ID: template.ID,
ThemeName: template.ThemeName,
MsgType: fv.name,
PublicTemplateID: fv.wx_template.toString(),
PublicTemplateID: fv.wx_template.toString() ? fv.wx_template.toString() : WX_ITEMS[0].Id,
PublicConfig: template.PublicConfig,
PublicPath: fv.h5_path,
MsgTemplateName: template.MsgTemplateName,
......@@ -231,9 +231,9 @@ const EditModal = props => {
PushMode: push_mode.join(','),
PushPath: template.PushPath,
IsStarted: isUse,
MsgTemplateID: fv.message_template,
AppTemplateID: fv.app_template,
WebTemplateID: fv.web_template,
MsgTemplateID: fv.message_template ? fv.message_template : MES_ITEMS[0].Id,
AppTemplateID: fv.app_template ? fv.app_template : APP_ITEMS[0].Id,
WebTemplateID: fv.web_template ? fv.web_template : WEB_ITEMS[0].Id,
PushGroup: fv.to_person ? fv.to_person.toString() : '',
WorkWeiXinTemplateId: aa,
};
......@@ -277,7 +277,7 @@ const EditModal = props => {
let b = {
ThemeName: '定时推送',
MsgType: fv.name,
PublicTemplateID: fv.wx_template ? fv.wx_template.toString() : null,
PublicTemplateID: fv.wx_template ? fv.wx_template.toString() : WX_ITEMS[0].Id,
PublicConfig: template.PublicConfig,
PublicPath: fv.h5_path,
MsgTemplateName: template.MsgTemplateName,
......@@ -294,9 +294,9 @@ const EditModal = props => {
PushMode: push_mode.join(','),
PushPath: template.PushPath,
IsStarted: isUse,
MsgTemplateID: fv.message_template,
AppTemplateID: fv.app_template,
WebTemplateID: fv.web_template,
MsgTemplateID: fv.message_template ? fv.message_template : MES_ITEMS[0].Id,
AppTemplateID: fv.app_template ? fv.app_template : APP_ITEMS[0].Id,
WebTemplateID: fv.web_template ? fv.web_template : WEB_ITEMS[0].Id,
PushGroup: fv.to_person ? fv.to_person.toString() : '',
WorkWeiXinTemplateId: bb,
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment