mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
fixed 固化数据库名
This commit is contained in:
parent
6e3118143b
commit
1793600bd1
@ -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);
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ return [
|
||||
// 服务器地址
|
||||
'hostname' => '127.0.0.1',
|
||||
// 数据库名
|
||||
'database' => 'apiadmin',
|
||||
'database' => 'crm',
|
||||
// 用户名
|
||||
'username' => 'root',
|
||||
// 密码
|
||||
|
Loading…
x
Reference in New Issue
Block a user