diff --git a/application/wechat/view/menu.index.html b/application/wechat/view/menu.index.html
index 5a18884b0..d9730f0c1 100644
--- a/application/wechat/view/menu.index.html
+++ b/application/wechat/view/menu.index.html
@@ -240,9 +240,9 @@
switch (type) {
case 'miniprogram':
var tpl = '
';
var _appid = '', _pagepath = '', _url = '';
if (content.indexOf(',') > 0) {
@@ -250,7 +250,7 @@
_url = content.split(',')[1] || '';
_pagepath = content.split(',')[2] || '';
}
- return tpl.replace('{appid}', _appid).replace('{url}', _url).replace('{pagepath}', _pagepath);
+ return tpl.replace(/\{appid\}/ig, _appid).replace(/\{url\}/ig, _url).replace(/\{pagepath\}/ig, _pagepath);
case 'customservice':
case 'text':
return '回复内容
'.replace('{content}', content);