diff --git a/components/common/Render.js b/components/common/Render.js index f1fe90ca..95ec7268 100644 --- a/components/common/Render.js +++ b/components/common/Render.js @@ -7,7 +7,7 @@ const Render = { console.log('未找到e.runtime,请升级至最新版Yunzai') } return e.runtime.render(cfg.plugin || 'miao-plugin', path, params, { - retType: cfg.retMsgId ? 'msgId' : 'default', + retType: cfg.retType || (cfg.retMsgId ? 'msgId' : 'default'), beforeRender ({ data }) { let pluginName = '' if (data.pluginName !== false) { @@ -39,4 +39,4 @@ const Render = { } } -export default Render +export default Render \ No newline at end of file