🔖 Releasing / Version tags.2.8.0

This commit is contained in:
冷冷 committed 2019-04-03 21:33:17 +08:00
1 parent 2a973ffa71
commit 4219161d47
32 files changed
+36 -34

No files matched your search

@@ -18,7 +18,7 @@
package org.springframework.cloud.openfeign;
import cn.hutool.core.util.StrUtil;
import com.pig4cloud.pigx.common.core.constant.CommonConstants;
import cn.hutool.json.JSONUtil;
import com.pig4cloud.pigx.common.core.util.R;
import feign.FeignException;
import lombok.AllArgsConstructor;
@@ -57,8 +57,7 @@ public class PigxFeignFallback<T> implements MethodInterceptor {
String str = StrUtil.str(content, StandardCharsets.UTF_8);
log.error("PigxFeignFallback:[{}.{}] serviceId:[{}] message:[{}]", targetType.getName(), method.getName(), targetName, str);
return R.builder().code(CommonConstants.FAIL)
.msg(str).build();
return JSONUtil.toBean(str, R.class);
}
@Override