mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 变更apiadmin配置文件命名
This commit is contained in:
parent
8a3727c40a
commit
070b74850b
@ -24,7 +24,7 @@ class App extends Base {
|
||||
*/
|
||||
public function index() {
|
||||
|
||||
$limit = $this->request->get('size', config('apiAdmin.ADMIN_LIST_DEFAULT'));
|
||||
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT'));
|
||||
$start = $this->request->get('page', 1);
|
||||
$keywords = $this->request->get('keywords', '');
|
||||
$type = $this->request->get('type', '');
|
||||
|
@ -21,7 +21,7 @@ class AppGroup extends Base {
|
||||
* @author zhaoxiang <zhaoxiang051405@gmail.com>
|
||||
*/
|
||||
public function index() {
|
||||
$limit = $this->request->get('size', config('apiAdmin.ADMIN_LIST_DEFAULT'));
|
||||
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT'));
|
||||
$start = $this->request->get('page', 1);
|
||||
$keywords = $this->request->get('keywords', '');
|
||||
$type = $this->request->get('type', '');
|
||||
|
@ -25,7 +25,7 @@ class Auth extends Base {
|
||||
*/
|
||||
public function index() {
|
||||
|
||||
$limit = $this->request->get('size', config('apiAdmin.ADMIN_LIST_DEFAULT'));
|
||||
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT'));
|
||||
$start = $this->request->get('page', 1);
|
||||
$keywords = $this->request->get('keywords', '');
|
||||
$status = $this->request->get('status', '');
|
||||
|
@ -38,7 +38,7 @@ class Fields extends Base {
|
||||
* @author zhaoxiang <zhaoxiang051405@gmail.com>
|
||||
*/
|
||||
public function request() {
|
||||
$limit = $this->request->get('size', config('apiAdmin.ADMIN_LIST_DEFAULT'));
|
||||
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT'));
|
||||
$start = $this->request->get('page', 1);
|
||||
$hash = $this->request->get('hash', '');
|
||||
|
||||
@ -63,7 +63,7 @@ class Fields extends Base {
|
||||
* @author zhaoxiang <zhaoxiang051405@gmail.com>
|
||||
*/
|
||||
public function response() {
|
||||
$limit = $this->request->get('size', config('apiAdmin.ADMIN_LIST_DEFAULT'));
|
||||
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT'));
|
||||
$start = $this->request->get('page', 1);
|
||||
$hash = $this->request->get('hash', '');
|
||||
|
||||
|
@ -22,7 +22,7 @@ class InterfaceGroup extends Base {
|
||||
* @author zhaoxiang <zhaoxiang051405@gmail.com>
|
||||
*/
|
||||
public function index() {
|
||||
$limit = $this->request->get('size', config('apiAdmin.ADMIN_LIST_DEFAULT'));
|
||||
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT'));
|
||||
$start = $this->request->get('page', 1);
|
||||
$keywords = $this->request->get('keywords', '');
|
||||
$type = $this->request->get('type', '');
|
||||
|
@ -23,7 +23,7 @@ class InterfaceList extends Base {
|
||||
*/
|
||||
public function index() {
|
||||
|
||||
$limit = $this->request->get('size', config('apiAdmin.ADMIN_LIST_DEFAULT'));
|
||||
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT'));
|
||||
$start = $this->request->get('page', 1);
|
||||
$keywords = $this->request->get('keywords', '');
|
||||
$type = $this->request->get('type', '');
|
||||
|
@ -25,7 +25,7 @@ class Log extends Base {
|
||||
*/
|
||||
public function index() {
|
||||
|
||||
$limit = $this->request->get('size', config('apiAdmin.ADMIN_LIST_DEFAULT'));
|
||||
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT'));
|
||||
$start = $this->request->get('page', 1);
|
||||
$type = $this->request->get('type', '');
|
||||
$keywords = $this->request->get('keywords', '');
|
||||
|
@ -64,8 +64,8 @@ class Login extends Base {
|
||||
return $this->buildFailed(ReturnCode::LOGIN_ERROR, '用户名密码不正确');
|
||||
}
|
||||
$apiAuth = md5(uniqid() . time());
|
||||
cache('Login:' . $apiAuth, json_encode($userInfo), config('apiAdmin.ONLINE_TIME'));
|
||||
cache('Login:' . $userInfo['id'], $apiAuth, config('apiAdmin.ONLINE_TIME'));
|
||||
cache('Login:' . $apiAuth, json_encode($userInfo), config('apiadmin.ONLINE_TIME'));
|
||||
cache('Login:' . $userInfo['id'], $apiAuth, config('apiadmin.ONLINE_TIME'));
|
||||
|
||||
$return['access'] = [];
|
||||
$isSupper = Tools::isAdministrator($userInfo['id']);
|
||||
|
@ -25,7 +25,7 @@ class User extends Base {
|
||||
*/
|
||||
public function index() {
|
||||
|
||||
$limit = $this->request->get('size', config('apiAdmin.ADMIN_LIST_DEFAULT'));
|
||||
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT'));
|
||||
$start = $this->request->get('page', 1);
|
||||
$type = $this->request->get('type', '');
|
||||
$keywords = $this->request->get('keywords', '');
|
||||
@ -119,7 +119,7 @@ class User extends Base {
|
||||
* @author zhaoxiang <zhaoxiang051405@gmail.com>
|
||||
*/
|
||||
public function getUsers() {
|
||||
$limit = $this->request->get('size', config('apiAdmin.ADMIN_LIST_DEFAULT'));
|
||||
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT'));
|
||||
$page = $this->request->get('page', 1);
|
||||
$gid = $this->request->get('gid', 0);
|
||||
if (!$gid) {
|
||||
|
@ -40,7 +40,7 @@ class BuildToken extends Base {
|
||||
if ($sign !== $signature) {
|
||||
return $this->buildFailed(ReturnCode::INVALID, '身份令牌验证失败');
|
||||
}
|
||||
$expires = config('apiAdmin.ACCESS_TOKEN_TIME_OUT');
|
||||
$expires = config('apiadmin.ACCESS_TOKEN_TIME_OUT');
|
||||
$accessToken = cache('AccessToken:' . $param['device_id']);
|
||||
if ($accessToken) {
|
||||
cache('AccessToken:' . $accessToken, null);
|
||||
|
@ -12,9 +12,9 @@ class Index extends Base {
|
||||
]);
|
||||
|
||||
return $this->buildSuccess([
|
||||
'Product' => config('apiAdmin.APP_NAME'),
|
||||
'Version' => config('apiAdmin.APP_VERSION'),
|
||||
'Company' => config('apiAdmin.COMPANY_NAME'),
|
||||
'Product' => config('apiadmin.APP_NAME'),
|
||||
'Version' => config('apiadmin.APP_VERSION'),
|
||||
'Company' => config('apiadmin.COMPANY_NAME'),
|
||||
'ToYou' => "I'm glad to meet you(终于等到你!)"
|
||||
]);
|
||||
}
|
||||
|
@ -13,9 +13,9 @@ class Miss extends Base {
|
||||
]);
|
||||
|
||||
return $this->buildSuccess([
|
||||
'Product' => config('apiAdmin.APP_NAME'),
|
||||
'Version' => config('apiAdmin.APP_VERSION'),
|
||||
'Company' => config('apiAdmin.COMPANY_NAME'),
|
||||
'Product' => config('apiadmin.APP_NAME'),
|
||||
'Version' => config('apiadmin.APP_VERSION'),
|
||||
'Company' => config('apiadmin.COMPANY_NAME'),
|
||||
'ToYou' => "I'm glad to meet you(终于等到你!)"
|
||||
]);
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ class Tools {
|
||||
*/
|
||||
public static function userMd5($str, $auth_key = '') {
|
||||
if (!$auth_key) {
|
||||
$auth_key = config('apiAdmin.AUTH_KEY');
|
||||
$auth_key = config('apiadmin.AUTH_KEY');
|
||||
}
|
||||
|
||||
return '' === $str ? '' : md5(sha1($str) . $auth_key);
|
||||
@ -49,7 +49,7 @@ class Tools {
|
||||
*/
|
||||
public static function isAdministrator($uid = '') {
|
||||
if (!empty($uid)) {
|
||||
$adminConf = config('apiAdmin.USER_ADMINISTRATOR');
|
||||
$adminConf = config('apiadmin.USER_ADMINISTRATOR');
|
||||
if (is_array($adminConf)) {
|
||||
if (is_array($uid)) {
|
||||
$m = array_intersect($adminConf, $uid);
|
||||
|
@ -2,14 +2,14 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{:config('apiAdmin.APP_NAME')} - 算法说明</title>
|
||||
<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>
|
||||
<h1 class="ui header">{:config('apiadmin.APP_NAME')} - 算法说明 </h1>
|
||||
<a href="{:url('/wiki/index')}">
|
||||
<button class="ui green button" style="margin-top: 15px">返回接口文档</button>
|
||||
</a>
|
||||
@ -37,7 +37,7 @@
|
||||
<div class="ui horizontal divider">四、计算秘钥</div>
|
||||
<p>将第三步生成的字符串进行哈希计算(md5)获得最终身份认证秘钥。</p>
|
||||
</div>
|
||||
<p>© Powered By <a href="http://www.apiadmin.org/" target="_blank">{:config('apiAdmin.APP_NAME')} {:config('apiAdmin.APP_VERSION')}</a> <p>
|
||||
<p>© Powered By <a href="http://www.apiadmin.org/" target="_blank">{:config('apiadmin.APP_NAME')} {:config('apiadmin.APP_VERSION')}</a> <p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{:config('apiAdmin.APP_NAME')} - 在线接口列表</title>
|
||||
<title>{:config('apiadmin.APP_NAME')} - 在线接口列表</title>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/semantic.min.css" rel="stylesheet">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/components/tab.min.js"></script>
|
||||
@ -57,7 +57,7 @@
|
||||
<span class='ui green label large'><i class="usb icon"></i>启用</span>
|
||||
{/if}
|
||||
{/if}
|
||||
<span class="ui teal label large"><i class="certificate icon"></i>{:config('apiAdmin.APP_VERSION')}</span>
|
||||
<span class="ui teal label large"><i class="certificate icon"></i>{:config('apiadmin.APP_VERSION')}</span>
|
||||
<span class="ui blue large label"><i class="chrome icon"></i>
|
||||
{switch name="detail['method']"}
|
||||
{case value="1" break="1"}POST{/case}
|
||||
@ -85,7 +85,7 @@
|
||||
<td>version</td>
|
||||
<td>String</td>
|
||||
<td><span class="ui green label">必填</span></td>
|
||||
<td>{:config('apiAdmin.APP_VERSION')}</td>
|
||||
<td>{:config('apiadmin.APP_VERSION')}</td>
|
||||
<td></td>
|
||||
<td>API版本号【请在Header头里面传递】</td>
|
||||
</tr>
|
||||
@ -172,7 +172,7 @@
|
||||
<div class="ui blue message">
|
||||
<strong>温馨提示:</strong> 此接口参数列表根据后台代码自动生成,如有疑问请咨询后端开发
|
||||
</div>
|
||||
<p>© Powered By <a href="http://www.apiadmin.org/" target="_blank">{:config('apiAdmin.APP_NAME')} {:config('apiAdmin.APP_VERSION')}</a> <p>
|
||||
<p>© Powered By <a href="http://www.apiadmin.org/" target="_blank">{:config('apiadmin.APP_NAME')} {:config('apiadmin.APP_VERSION')}</a> <p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,14 +2,14 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{:config('apiAdmin.APP_NAME')} - 错误码说明</title>
|
||||
<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>
|
||||
<h1 class="ui header">{:config('apiadmin.APP_NAME')} - 错误码说明</h1>
|
||||
<a href="{:url('/wiki/index')}">
|
||||
<button class="ui green button" style="margin-top: 15px">返回接口文档</button>
|
||||
</a>
|
||||
@ -38,7 +38,7 @@
|
||||
{/volist}
|
||||
</tbody>
|
||||
</table>
|
||||
<p>© Powered By <a href="http://www.apiadmin.org/" target="_blank">{:config('apiAdmin.APP_NAME')} {:config('apiAdmin.APP_VERSION')}</a> <p>
|
||||
<p>© Powered By <a href="http://www.apiadmin.org/" target="_blank">{:config('apiadmin.APP_NAME')} {:config('apiadmin.APP_VERSION')}</a> <p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -2,14 +2,14 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{:config('apiAdmin.APP_NAME')} - 在线接口文档</title>
|
||||
<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>
|
||||
<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>
|
||||
@ -71,7 +71,7 @@
|
||||
{/if}
|
||||
{/volist}
|
||||
</div>
|
||||
<p>© Powered By <a href="http://www.apiadmin.org/" target="_blank">{:config('apiAdmin.APP_NAME')} {:config('apiAdmin.APP_VERSION')}</a> <p>
|
||||
<p>© Powered By <a href="http://www.apiadmin.org/" target="_blank">{:config('apiadmin.APP_NAME')} {:config('apiadmin.APP_VERSION')}</a> <p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -8,7 +8,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
|
||||
<!-- Site Properties -->
|
||||
<title>{:config('apiAdmin.APP_NAME')} - 在线接口文档</title>
|
||||
<title>{:config('apiadmin.APP_NAME')} - 在线接口文档</title>
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/semantic.min.css" rel="stylesheet">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
<div class="column">
|
||||
<h2 class="ui teal image header">
|
||||
<div class="content">
|
||||
欢迎使用{:config('apiAdmin.APP_NAME')}在线文档
|
||||
欢迎使用{:config('apiadmin.APP_NAME')}在线文档
|
||||
</div>
|
||||
</h2>
|
||||
<form class="ui large form" method="post" action="{:url('/wiki/doLogin')}">
|
||||
|
Loading…
x
Reference in New Issue
Block a user