From 4b9bdbdab8d33a9197e12cac65477018e8bdc20e Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Sat, 28 Apr 2018 17:08: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>&copy; Powered  By <a href="http://www.phalapi.net/" target="_blank">PhalApi {$version}</a><span id="version_update"></span></p>
+        <p>&copy; 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('&nbsp; | &nbsp; <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