2019-07-04 15:55:11 +08:00

79 lines
4.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{:config('apiadmin.APP_NAME')} - 在线接口文档</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/semantic.min.css" rel="stylesheet">
</head>
<body>
<br />
<div class="ui text container" style="max-width: none !important;">
<div class="ui floating message">
<h1 class="ui header">{:config('apiadmin.APP_NAME')} - 接口文档</h1>
<a href="{:url('/wiki/errorCode')}">
<button class="ui red button" style="margin-top: 15px">错误码说明</button>
</a>
<a href="{:url('/wiki/calculation')}">
<button class="ui orange button" style="margin-top: 15px">算法详解</button>
</a>
<div class="ui floating message">
<div class="content">
<div class="header" style="margin-bottom: 15px">接口状态说明:</div>
<p><span class='ui teal label'>测试</span> 系统将不过滤任何字段也不进行AccessToken的认证但在必要的情况下会进行UserToken的认证</p>
<p><span class='ui blue label'>启用</span> 系统将严格过滤请求字段,并且进行全部必要认证!</p>
<p><span class='ui red label'>禁用</span> 系统将拒绝所有请求,一般应用于危机处理!</p>
</div>
</div>
<div class="ui cards four column">
{volist name="appInfo['app_api_show']" id="vo"}
{php}
$apiLength = count($vo);
{/php}
{if condition="$apiLength"}
<div class="card column">
<a class="image" href="{:url('/wiki/detail/' . $key)}">
<img src="{$groupInfo[$key]['image'] ? $groupInfo[$key]['image'] : '/static/defaultImg.jpg'}">
</a>
<div class="content">
<a class="header" href="{:url('/wiki/detail/' . $key)}">
{$groupInfo[$key]['name']}
</a>
<a class="meta" href="{:url('/wiki/detail/' . $key)}">
<span class="group" style="font-size: 0.8em;">{$groupInfo[$key]['update_time']}</span>
</a>
<a class="description" style="display: block;font-size: 0.8em;" href="{:url('/wiki/detail/' . $key)}">
{php}
$len = mb_strlen($groupInfo[$key]['description'], 'utf8');
if($len > 31) {
echo mb_substr($groupInfo[$key]['description'], 0, 31, 'utf8') . ' ...';
} else {
echo $groupInfo[$key]['description'];
}
if ($groupInfo[$key]['hot'] >= 10000) {
$hot = sprintf("%.1f", $groupInfo[$key]['hot']/10000) . '万';
} else {
$hot = $groupInfo[$key]['hot'];
}
{/php}
</a>
</div>
<div class="extra content" style="font-size: 0.9em">
<a class="right floated created" href="{:url('/wiki/detail/' . $key)}">
<i class="fire icon"></i>
热度{$hot}
</a>
<a class="friends" href="{:url('/wiki/detail/' . $key)}">
<i class="cubes icon"></i>
共{$apiLength}个接口
</a>
</div>
</div>
{/if}
{/volist}
</div>
<p>&copy; Powered By <a href="http://www.apiadmin.org/" target="_blank">{:config('apiadmin.APP_NAME')} {:config('apiadmin.APP_VERSION')}</a> <p>
</div>
</div>
</body>
</html>