fixed 固化数据库名

This commit is contained in:
zx 2018-07-13 18:19:05 +08:00
parent 6e3118143b
commit 1793600bd1
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class ApiPermission {
$appInfo = cache('AccessToken:' . $access_token);
$allRules = explode(',', $appInfo['app_api']);
if (!in_array($hash, $allRules)) {
$data = ['code' => ReturnCode::INVALID, 'msg' => '非常抱歉,您没有权限么做!', 'data' => []];
$data = ['code' => ReturnCode::INVALID, 'msg' => '非常抱歉,您没有权限么做!', 'data' => []];
return json($data);
}

View File

@ -15,7 +15,7 @@ return [
// 服务器地址
'hostname' => '127.0.0.1',
// 数据库名
'database' => 'apiadmin',
'database' => 'crm',
// 用户名
'username' => 'root',
// 密码