From ee0aa4782bc64ae04d6b5ac69b45be5829e0add0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Thu, 24 Jan 2019 09:12:29 +0800 Subject: [PATCH] :alien: Updating code due to external API changes. :heavy_plus_sign: Adding a dependency. websocket --- .../pigx/common/security/feign/PigxFeginErrorDecoder.java | 2 +- pigx-visual/pigx-activiti/pom.xml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pigx-common/pigx-common-security/src/main/java/com/pig4cloud/pigx/common/security/feign/PigxFeginErrorDecoder.java b/pigx-common/pigx-common-security/src/main/java/com/pig4cloud/pigx/common/security/feign/PigxFeginErrorDecoder.java index 6ce2c2ec4..687f25651 100644 --- a/pigx-common/pigx-common-security/src/main/java/com/pig4cloud/pigx/common/security/feign/PigxFeginErrorDecoder.java +++ b/pigx-common/pigx-common-security/src/main/java/com/pig4cloud/pigx/common/security/feign/PigxFeginErrorDecoder.java @@ -57,7 +57,7 @@ public class PigxFeginErrorDecoder extends ErrorDecoder.Default { public Exception decode(String methodKey, Response response) { PigxFeginException exception = errorStatus(methodKey, response); Date retryAfter = retryAfterDecoder.apply(firstOrNull(response.headers())); - return new RetryableException(exception.getMessage(), exception, retryAfter); + return new RetryableException(exception.getMessage(), response.request().httpMethod(), exception, retryAfter); } private static PigxFeginException errorStatus(String methodKey, Response response) { diff --git a/pigx-visual/pigx-activiti/pom.xml b/pigx-visual/pigx-activiti/pom.xml index cbd536dbf..490e57204 100644 --- a/pigx-visual/pigx-activiti/pom.xml +++ b/pigx-visual/pigx-activiti/pom.xml @@ -65,6 +65,11 @@ pigx-common-swagger 2.2.0 + + + org.springframework.boot + spring-boot-starter-websocket + org.activiti