Commit d8d08355 authored by alex yao's avatar alex yao

fix:Agent API 用户校验

parent 3f5aad29
......@@ -60,7 +60,7 @@ public class ModelLinkRestImpl implements ModelLinkRest {
String apiKey = httpServletRequest.getHeader("x-api-key");
String apiSecret = httpServletRequest.getHeader("x-api-secret");
if (StringUtils.isBlank(apiKey) || StringUtils.isBlank(apiSecret)) {
throw new BusinessException("Api Key or Api Secret Can't Null");
throw new BusinessException("Api Key And Api Secret Can't Null");
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment