Commit cd9eee15 authored by matianhao's avatar matianhao

[纪委接口] <update> 修改刷新秘钥条件,如返回码不是成功(00)则刷新秘钥

parent c4dfa4b6
...@@ -107,8 +107,8 @@ public class RestTemplateService { ...@@ -107,8 +107,8 @@ public class RestTemplateService {
Integer count = threadLocal.get(); Integer count = threadLocal.get();
String threadName = Thread.currentThread().getName(); String threadName = Thread.currentThread().getName();
// 如返回签名错误,则重新获取秘钥并发送请求,限制重新请求次数两次 // 如非成功返回码,则重新获取秘钥并发送请求,限制重新请求次数两次
if (RESPONSE_CODE_14.equals(code) && count < 2) { if (!RESPONSE_CODE_00.equals(code) && count < 2) {
threadLocal.set(++count); threadLocal.set(++count);
log.info("线程名称:{},重新请求次数:{}", threadName, count); log.info("线程名称:{},重新请求次数:{}", threadName, count);
// redis 中获取过期时间 // redis 中获取过期时间
......
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