Skip to content

Commit

Permalink
feat:支持开通蓝盾项目权限的同时开通对应的监控空间权限 #8935
Browse files Browse the repository at this point in the history
  • Loading branch information
fcfang123 committed Jun 29, 2023
1 parent d6b5978 commit 7777c09
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ class RbacPermissionMonitorService constructor(
val responseStr = it.body!!.string()
logger.info("executeHttpRequest:$responseStr")
val responseDTO = objectMapper.readValue<ResponseDTO>(responseStr)
if (responseDTO.code != 200L) {
if (responseDTO.code != REQUEST_SUCCESS_CODE) {
// 请求错误
logger.warn("request failed, url:($url)|response :($it)")
throw RemoteServiceException("request failed, response:(${responseDTO.message})")
Expand All @@ -362,5 +362,6 @@ class RbacPermissionMonitorService constructor(
private const val POST_METHOD = "POST"
private const val GET_METHOD = "GET"
private const val MONITOR_SYSTEM_ID = "bk_monitorv3"
private const val REQUEST_SUCCESS_CODE = 200L
}
}

0 comments on commit 7777c09

Please sign in to comment.