API调用量为0时为无限次
This commit is contained in:
+3
-2
@@ -647,7 +647,6 @@ public class ApiUserController {
|
||||
AuthorityBo bo = new AuthorityBo();
|
||||
BeanUtils.copyProperties(openResource, bo);
|
||||
if (authority != null) {
|
||||
bo.setHasAuth(authority.getOpenResourseUris().contains(bo.getUri()));
|
||||
bo.setHasAuth(authority.getOpenResourseUris().contains(bo.getUri()));
|
||||
model.setSupportLatLng(authority.isSupportLatLng());
|
||||
bo.setLimitCountMap(authority.getLimitCountMap());
|
||||
@@ -760,7 +759,9 @@ public class ApiUserController {
|
||||
apiCountLogService.save(apiCountLog);
|
||||
}
|
||||
}
|
||||
totalCountMap.put(model.getUri(), count);
|
||||
if (count == 0) {
|
||||
totalCountMap.remove(model.getUri());
|
||||
}
|
||||
authority.setTotalCountMap(totalCountMap);
|
||||
}
|
||||
if (model.getIsCheckCount() != null) {
|
||||
|
||||
Reference in New Issue
Block a user