Commit 0e38684e authored by chenyuxi's avatar chenyuxi

feat: 接口提示语调整+降低日志等级

parent 0283cec0
...@@ -128,7 +128,7 @@ public class WxConfig { ...@@ -128,7 +128,7 @@ public class WxConfig {
HttpEntity<String> requestEntity = new HttpEntity<>(gson.toJson(requestMap), headers); HttpEntity<String> requestEntity = new HttpEntity<>(gson.toJson(requestMap), headers);
String accessToken = getAccessToken(restTemplate); String accessToken = getAccessToken(restTemplate);
ResponseEntity<String> responseEntity = restTemplate.postForEntity(String.format(SecurityConstants.WX_SEND_MESSAGE, accessToken), requestEntity, String.class); ResponseEntity<String> responseEntity = restTemplate.postForEntity(String.format(SecurityConstants.WX_SEND_MESSAGE, accessToken), requestEntity, String.class);
log.error("发企业微信===返回:{}",JSON.toJSONString(responseEntity)); log.debug("发企业微信===返回:{}",JSON.toJSONString(responseEntity));
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(responseEntity)); JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(responseEntity));
JSONObject jsonBody = jsonObject.getJSONObject("body"); JSONObject jsonBody = jsonObject.getJSONObject("body");
if (jsonBody != null) { if (jsonBody != null) {
......
...@@ -180,8 +180,8 @@ public class TInsuranceUnpurchaseApplyController { ...@@ -180,8 +180,8 @@ public class TInsuranceUnpurchaseApplyController {
try { try {
requestId = RedisDistributedLock.getLock(redisKey,"10"); requestId = RedisDistributedLock.getLock(redisKey,"10");
} catch (Exception e) { } catch (Exception e) {
log.error("获取锁失败:{}", e); log.error("含风险项目不购买申请--提交审核--获取锁失败:{0}", e);
return R.failed(ResultConstants.NO_GETLOCK_DATA); return R.failed(ResultConstants.NO_GETLOCK_DATA_SEARCH);
} }
if (Common.isNotKong(requestId)) { if (Common.isNotKong(requestId)) {
R<String> saveR = tInsuranceUnpurchaseApplyService.commitOne(id, user); R<String> saveR = tInsuranceUnpurchaseApplyService.commitOne(id, user);
...@@ -189,7 +189,7 @@ public class TInsuranceUnpurchaseApplyController { ...@@ -189,7 +189,7 @@ public class TInsuranceUnpurchaseApplyController {
RedisDistributedLock.unlock(redisKey, requestId); RedisDistributedLock.unlock(redisKey, requestId);
return saveR; return saveR;
} else { } else {
return R.failed(ResultConstants.NO_GETLOCK_DATA); return R.failed(ResultConstants.NO_GETLOCK_DATA_SEARCH);
} }
} else { } else {
return R.failed("请选择提交的记录!"); return R.failed("请选择提交的记录!");
...@@ -228,6 +228,7 @@ public class TInsuranceUnpurchaseApplyController { ...@@ -228,6 +228,7 @@ public class TInsuranceUnpurchaseApplyController {
try { try {
requestId = RedisDistributedLock.tryLockAndTime(redisKey, "10"); requestId = RedisDistributedLock.tryLockAndTime(redisKey, "10");
} catch (Exception e) { } catch (Exception e) {
log.error("含风险项目不购买申请--审核操作--获取锁失败:{0}", e);
return R.failed(ResultConstants.NO_GETLOCK_DATA); return R.failed(ResultConstants.NO_GETLOCK_DATA);
} }
if (Common.isNotKong(requestId)) { if (Common.isNotKong(requestId)) {
......
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