diff --git a/application/wechat/controller/Menu.php b/application/wechat/controller/Menu.php index e77aa174d..171005627 100644 --- a/application/wechat/controller/Menu.php +++ b/application/wechat/controller/Menu.php @@ -124,7 +124,7 @@ class Menu extends BasicAdmin { empty($row['content']) && $row['content'] = uniqid(); switch ($row['type']) { case 'miniprogram': - list($row['appid'], $row['pagepath']) = explode(',', $row['content']); + list($row['appid'], $row['pagepath']) = explode(',', $row['content'] . ','); break; case 'view': $row['url'] = preg_match('#^(\w+:)?//#i', $row['content']) ? $row['content'] : url($row['content'], '', true, true); diff --git a/application/wechat/view/menu.index.html b/application/wechat/view/menu.index.html index d889c0600..ffba30724 100644 --- a/application/wechat/view/menu.index.html +++ b/application/wechat/view/menu.index.html @@ -239,7 +239,7 @@ var html = function () { switch (type) { case 'miniprogram': - var tpl = '
小程序APPID
Pagepath
'; + var tpl = '
小程序APPID
Pagepath
'; var _appid = '', _content = ''; if (content.indexOf(',') > 0) { _appid = content.split(',')[0];