|
@@ -94,7 +94,7 @@ public class AuthAop {
|
|
|
JSONArray jsonArray = JSONArray.parseArray(resBody);
|
|
|
//如果获得规则的返回值为[-1]则代表登录人没有使用该功能的权限
|
|
|
if (jsonArray.get(0).toString().equals("-1")) {
|
|
|
- return Response.error("没有" + operAnnotation.summary() + "的功能");
|
|
|
+ return Response.noPermissions("没有" + operAnnotation.summary() + "的功能");
|
|
|
}
|
|
|
//如果获得规则的返回值为[0],则直接通过判断
|
|
|
else if (jsonArray.size() == 1 && jsonArray.get(0).equals("0")) {
|