colly
2017-08-07 78981c784ebe0fda3d1ff20cabe4e21bed2e6549
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>