|
@@ -106,24 +106,21 @@ public class UnifierController {
|
|
|
businessService = (RequestProcessor) serviceBean;
|
|
|
}
|
|
|
|
|
|
- String jsonString = param.toString();
|
|
|
try {
|
|
|
- jsonString = objectMapper.writeValueAsString(param);
|
|
|
- jsonString = URLDecoder.decode(jsonString, "UTF-8");
|
|
|
|
|
|
- apiResult.setData(businessService.handle(jsonString));
|
|
|
+ apiResult.setData(businessService.handle(param));
|
|
|
|
|
|
apiResult.setResult(ApiResult.result_success);
|
|
|
} catch (Exception e) {
|
|
|
apiResult.setResult(ApiResult.result_fail);
|
|
|
apiResult.setMessage(e.getMessage());
|
|
|
- log.error("Request Error! requesterIp="+ip+" API=" + handleType + ", Param=" + jsonString + ", Msg=" + e.getMessage(), e);
|
|
|
+ log.error("Request Error! requesterIp="+ip+" API=" + handleType + ", Param=" + param + ", Msg=" + e.getMessage(), e);
|
|
|
}
|
|
|
|
|
|
long end = System.currentTimeMillis();
|
|
|
long timeInterval = (end - start.longValue()) / 1000;
|
|
|
if (timeInterval > 5) {
|
|
|
- log.warn("TimeCost Warning! requesterIp=" +ip+ "timeCost=" +timeInterval + "s, API=" + handleType + ", Param=" + jsonString);
|
|
|
+ log.warn("TimeCost Warning! requesterIp=" +ip+ "timeCost=" +timeInterval + "s, API=" + handleType + ", Param=" + param);
|
|
|
}
|
|
|
|
|
|
return apiResult;
|