diff --git a/public/static/admin/listen.js b/public/static/admin/listen.js index db086fc7e..643a2b4bb 100644 --- a/public/static/admin/listen.js +++ b/public/static/admin/listen.js @@ -158,7 +158,8 @@ define(['jquery', 'admin.plugs'], function () { (/^\w{16}$/.test(token)) && (params.token = token); } delete params[""]; - return uri + '?' + $.param(params); + var query = '?' + $.param(params); + return uri + (query !== '?' ? query : ''); }; /*! 通过URI查询最有可能的菜单NODE */ function queryNode(url) { diff --git a/public/static/admin/plugs.js b/public/static/admin/plugs.js index f1f549854..0d08fed0e 100644 --- a/public/static/admin/plugs.js +++ b/public/static/admin/plugs.js @@ -236,7 +236,7 @@ define(['zeroclipboard', 'jquery'], function (ZeroClipboard) { if (typeof (res) === 'object') { return $.msg.auto(res, time); } - if (res.indexOf('A PHP Error was encountered') !== -1) { + if (res.indexOf('A PHP Error was encountered') > -1) { return $.msg.tips(self.errMsg.replace('{status}', 'E505 - ')); } self.show(res);