modified 进一步提高wiki的适配性

This commit is contained in:
zhaoxiang 2017-05-27 15:22:48 +08:00
parent ef53faeaf5
commit 3d95891dd7
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@
<br />
<div class="ui text container" style="max-width: none !important;">
<div class="ui floating message">
<h2 class='ui header'>接口唯一标识:<a target="_blank" href="http://{$_SERVER['HTTP_HOST']}/api/{$apiInfo['hash']}">{$apiInfo['hash']}</a>{$apiInfo['apiName']}</h2><br />
<h2 class='ui header'>接口唯一标识:<a target="_blank" href="{:U('/api/'.$apiInfo['hash'])}">{$apiInfo['hash']}</a>{$apiInfo['apiName']}</h2><br />
<switch name="apiInfo['method']" >
<case value="1" break="1"> <span class='ui orange tag label'>POST</span></case>
<case value="2" break="1"> <span class='ui blue tag label'>GET</span></case>

View File

@ -17,7 +17,8 @@
<button class="ui orange button" style="margin-top: 15px">算法详解</button>
</a>
<div class="ui teal message">
<strong>API统一访问地址</strong> http://{$_SERVER['HTTP_HOST']}/api/接口唯一标识
<php>$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';</php>
<strong>API统一访问地址</strong> {$http_type}{$_SERVER['HTTP_HOST']}/api/接口唯一标识
</div>
<div class="ui floating message">
<div class="content">