diff --git a/application/admin/behavior/ApiPermission.php b/application/admin/behavior/ApiPermission.php index 4f01fa2..9a1c39e 100644 --- a/application/admin/behavior/ApiPermission.php +++ b/application/admin/behavior/ApiPermission.php @@ -33,7 +33,7 @@ class ApiPermission { $userInfo = cache('Login:' . $ApiAuth); $userInfo = json_decode($userInfo, true); if (!$this->checkAuth($userInfo['id'], $route['route'])) { - $data = ['code' => ReturnCode::INVALID, 'msg' => '非常抱歉,您没有权限怎么做!', 'data' => []]; + $data = ['code' => ReturnCode::INVALID, 'msg' => '非常抱歉,您没有权限这么做!', 'data' => []]; return json($data, 200, $header); } diff --git a/application/wiki/controller/Index.php b/application/wiki/controller/Index.php index 965ce1b..671da98 100644 --- a/application/wiki/controller/Index.php +++ b/application/wiki/controller/Index.php @@ -128,7 +128,7 @@ class Index extends Base { ReturnCode::RECORD_NOT_FOUND => '记录未找到', ReturnCode::DELETE_FAILED => '删除失败', ReturnCode::ADD_FAILED => '添加记录失败', - ReturnCode::UPDATE_FAILED => '添加记录失败', + ReturnCode::UPDATE_FAILED => '更新记录失败', ReturnCode::PARAM_INVALID => '数据类型非法', ReturnCode::ACCESS_TOKEN_TIMEOUT => '身份令牌过期', ReturnCode::SESSION_TIMEOUT => 'SESSION过期',