From 74adf3a72663f151dc2c1b87ecb4ea4b0e080a50 Mon Sep 17 00:00:00 2001 From: colly_wyx <wangyixiong_007@163.com> Date: Fri, 27 Apr 2018 16:21:52 +0800 Subject: [PATCH] 优化 --- PhalApi/PhalApi/Helper/api_desc_tpl.php | 26 ++------------------------ 1 files changed, 2 insertions(+), 24 deletions(-) diff --git a/PhalApi/PhalApi/Helper/api_desc_tpl.php b/PhalApi/PhalApi/Helper/api_desc_tpl.php index a6a57fe..aca6097 100644 --- a/PhalApi/PhalApi/Helper/api_desc_tpl.php +++ b/PhalApi/PhalApi/Helper/api_desc_tpl.php @@ -208,12 +208,12 @@ /** * ������ */ -$version = PHALAPI_VERSION; +$version = '���������'; echo <<<EOT <div class="ui blue message"> <strong>���������������</strong> ������������������������������������������������������������ ?service= ������������������������������/������ </div> - <p>© Powered By <a href="http://www.phalapi.net/" target="_blank">PhalApi {$version}</a><span id="version_update"></span></p> + <p>© Powered By {$version}<span id="version_update"></span></p> </div> </div> <script type="text/javascript"> @@ -251,28 +251,6 @@ checkLastestVersion(); }) - // ������������������ - function checkLastestVersion() { - $.ajax({ - url:'https://www.phalapi.net/check_lastest_version.php', - type:'get', - data:{version : '$version'}, - success:function(res,status,xhr){ - if (!res.ret || res.ret != 200) { - return; - } - if (res.data.need_upgrade >= 0) { - return; - } - - $('#version_update').html(' | <a target="_blank" href=" ' + res.data.url + ' "><strong>��������������� PhalApi ' + res.data.version + '</strong></a>'); - }, - error:function(error){ - console.log(error) - } - }) - - } </script> </body> </html> -- Gitblit v1.8.0