|
|
@ -111,17 +111,24 @@ public class InternalAuthProcessor extends AuthProcessor { |
|
|
|
builder.header(AppClientConstant.APP,baseTokenDto.getApp()); |
|
|
|
builder.header(AppClientConstant.CLIENT,baseTokenDto.getClient()); |
|
|
|
builder.header(AppClientConstant.USER_ID,baseTokenDto.getUserId()); |
|
|
|
if (StringUtils.isNotBlank(baseTokenDto.getCustomerId())) { |
|
|
|
builder.header(AppClientConstant.CUSTOMER_ID,baseTokenDto.getCustomerId()); |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.equalsAny(baseTokenDto.getApp(), AppClientConstant.APP_GOV, AppClientConstant.APP_RESI)) {//工作端/居民端
|
|
|
|
if(StringUtils.isNotBlank(customerId)){ |
|
|
|
exchange.getRequest().mutate().header(AppClientConstant.CUSTOMER_ID, customerId); |
|
|
|
if(StringUtils.isNotBlank(customerId)){ |
|
|
|
if (StringUtils.equalsAny(baseTokenDto.getApp(), AppClientConstant.APP_GOV, AppClientConstant.APP_RESI, "public")) {//工作端/居民端
|
|
|
|
builder.header(AppClientConstant.CUSTOMER_ID, customerId); |
|
|
|
} |
|
|
|
} else if (StringUtils.equals(baseTokenDto.getApp(), "public")) {//公众号端
|
|
|
|
exchange.getRequest().mutate().header(AppClientConstant.CUSTOMER_ID, customerId); |
|
|
|
} |
|
|
|
|
|
|
|
//if (StringUtils.isNotBlank(baseTokenDto.getCustomerId())) {
|
|
|
|
// builder.header(AppClientConstant.CUSTOMER_ID,baseTokenDto.getCustomerId());
|
|
|
|
//}
|
|
|
|
//
|
|
|
|
//if (StringUtils.equalsAny(baseTokenDto.getApp(), AppClientConstant.APP_GOV, AppClientConstant.APP_RESI)) {//工作端/居民端
|
|
|
|
// if(StringUtils.isNotBlank(customerId)){
|
|
|
|
// exchange.getRequest().mutate().header(AppClientConstant.CUSTOMER_ID, customerId);
|
|
|
|
// }
|
|
|
|
//} else if (StringUtils.equals(baseTokenDto.getApp(), "public")) {//公众号端
|
|
|
|
// exchange.getRequest().mutate().header(AppClientConstant.CUSTOMER_ID, customerId);
|
|
|
|
//}
|
|
|
|
ServerHttpRequest build = exchange.getRequest().mutate().build(); |
|
|
|
return exchange.mutate().request(build).build(); |
|
|
|
} |
|
|
|