Commit 2759b4e2 by zhulinying

Merge remote-tracking branch 'remotes/origin/master' into zhuly_bate

parents 3a3903a2 5d0c51a0
......@@ -69,7 +69,7 @@ public class LogFilter implements Filter {
filterChain.doFilter(httpServletRequest, servletResponse);
}else{
if (StringUtil.ckeckEmpty(yhCateCode) || StringUtil.ckeckEmpty(projectName)) {
ResultVO resultVO = ResultVOUtil.error(ResultEnum.PARAM_NOTNULL.getCode(), ResultEnum.PARAM_NOTNULL.getMessage());
ResultVO resultVO = ResultVOUtil.error(ResultEnum.PARAM_NOTNULL.getCode(), ResultEnum.PARAM_NOTNULL.getMessage(),"请检查yhCate和projectName参数是否正确");
OutputStream outputStream = servletResponse.getOutputStream();
outputStream.write(resultVO.toString().getBytes());
} else {
......@@ -94,6 +94,9 @@ public class LogFilter implements Filter {
case "05":
yhCateName = "讯之美";
break;
case "06":
yhCateName = "德拓";
break;
default:
yhCateName = "方正";
break;
......
......@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import java.util.ArrayList;
import java.util.List;
......
......@@ -273,7 +273,6 @@ public class ProtoServiceImpl implements ProtoService {
String result = HttpClient.doPostWaData(url,param);
return result;
}catch (InterServiceException e){
e.printStackTrace();
throw new InterServiceException(ResultEnum.REQUEST_URL_ERROR.getCode(),ResultEnum.REQUEST_URL_ERROR.getMessage());
}
}
......
......@@ -203,15 +203,11 @@ public class HttpClient {
CloseableHttpResponse result = httpClient.execute(httpPost);
if (result.getStatusLine().getStatusCode() == HttpStatus.SC_OK){
String str = "";
try{
// 读取服务器返回的json数据(然后解析)
jsonResult = EntityUtils.toString(result.getEntity(), "utf-8");
// 把json字符串转换成json对象
}catch (Exception e){
throw new InterServiceException(ResultEnum.REQUEST_URL_ERROR.getCode(),ResultEnum.REQUEST_URL_ERROR.getMessage(),e);
}
}
}catch (IOException e){
e.printStackTrace();
throw new InterServiceException(ResultEnum.REQUEST_URL_ERROR.getCode(),ResultEnum.REQUEST_URL_ERROR.getMessage(),e);
}finally{
httpPost.releaseConnection();
......
\u65B9\u6B63=00
\u65B9\u6B63=00
......@@ -4,3 +4,4 @@
\u5929\u5F66=03
\u6D77\u946B=04
\u8BAF\u4E4B\u7F8E=05
\u5FB7\u62D3=06
apikey=fb5aaf49482721d6c495d3ae26796216
apiKey=fb5aaf49482721d6c495d3ae26796216
username=xjzd-fangzheng
token_url=http://www.adu.cq:8071/doc/token/token
token=
......
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