From f22d1a3c4078d54e74985b471d7e1b17d769977c Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 16 Jun 2017 18:38:26 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E8=8F=9C=E5=8D=95=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Menu.php | 2 +- application/wechat/view/menu.index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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];