|
|
@ -123,7 +123,8 @@ public class CpAuthGatewayFilterFactory extends AbstractGatewayFilterFactory<CpA |
|
|
|
return response(exchange,new Result<>().error(e.getCode(),e.getMsg())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//添加流水号
|
|
|
|
exchange.getRequest().mutate().header(AppClientConstant.TRANSACTION_SERIAL_KEY, new String[]{getTransactionSerial()}); |
|
|
|
if (baseTokenDto != null) { |
|
|
|
String redisKey = baseTokenDto.getApp() + "-" + baseTokenDto.getClient() + "-" + baseTokenDto.getUserId(); |
|
|
|
logger.info("redisKey=" + redisKey); |
|
|
@ -132,7 +133,6 @@ public class CpAuthGatewayFilterFactory extends AbstractGatewayFilterFactory<CpA |
|
|
|
.header(AppClientConstant.APP,baseTokenDto.getApp()) |
|
|
|
.header(AppClientConstant.CLIENT,baseTokenDto.getClient()) |
|
|
|
.header(AppClientConstant.USER_ID,baseTokenDto.getUserId()) |
|
|
|
.header(AppClientConstant.TRANSACTION_SERIAL_KEY, new String[]{getTransactionSerial()}) |
|
|
|
; |
|
|
|
if(StringUtils.equals(baseTokenDto.getApp(),"gov")){ |
|
|
|
exchange.getRequest().mutate().header(AppClientConstant.CUSTOMER_ID,customerId); |
|
|
|