From f2b1a589549b920074376a62cf2ed560e1c47e71 Mon Sep 17 00:00:00 2001 From: dxc Date: Thu, 26 Aug 2021 12:25:00 +0800 Subject: [PATCH 01/44] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A3=8E=E9=99=A9?= =?UTF-8?q?=E7=AE=A1=E6=8E=A7=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/riskmanage/controller/RiskManageController.java | 2 +- .../ebtp/extend/riskmanage/service/IRiskManageService.java | 3 ++- .../extend/riskmanage/service/impl/RiskManageServiceImpl.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/controller/RiskManageController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/controller/RiskManageController.java index 19e83ea..b851321 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/controller/RiskManageController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/controller/RiskManageController.java @@ -59,6 +59,6 @@ public class RiskManageController { */ @PostMapping({"/findApplyRegulation"}) public BaseResponse findApplyRegulation(@RequestBody RiskManageRegulationVO riskManageRegulation){ - return BaseResponse.success(riskManageService.findApplyRegulation(riskManageRegulation)); + return riskManageService.findApplyRegulation(riskManageRegulation); } } diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/IRiskManageService.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/IRiskManageService.java index 7e5c5b6..1f2ca93 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/IRiskManageService.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/IRiskManageService.java @@ -1,5 +1,6 @@ package com.chinaunicom.mall.ebtp.extend.riskmanage.service; +import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse; import com.chinaunicom.mall.ebtp.extend.riskmanage.entity.RiskManageRegulationVO; /** @@ -14,5 +15,5 @@ public interface IRiskManageService { * @param riskManageRegulation 访问实体 * @return 返回结果 */ - Object findApplyRegulation(RiskManageRegulationVO riskManageRegulation); + BaseResponse findApplyRegulation(RiskManageRegulationVO riskManageRegulation); } diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java index 0758047..f626ddc 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java @@ -33,7 +33,7 @@ public class RiskManageServiceImpl implements IRiskManageService { @SneakyThrows @Override - public Object findApplyRegulation(RiskManageRegulationVO riskManageRegulation) { + public BaseResponse findApplyRegulation(RiskManageRegulationVO riskManageRegulation) { Map params = riskManageRegulation.getParams(); RiskManageRegulation regulation = riskManageRegulation.getRiskManageRegulation(); From 5744420b848712b368d05d6c89260869d50dc9f8 Mon Sep 17 00:00:00 2001 From: dxc Date: Thu, 26 Aug 2021 12:32:45 +0800 Subject: [PATCH 02/44] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A3=8E=E9=99=A9?= =?UTF-8?q?=E7=AE=A1=E6=8E=A7=E9=85=8D=E7=BD=AE=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-local.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index 22add41..4ae1048 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -164,6 +164,7 @@ mconfig: tender: biz-service-ebtp-tender #投标服务 documentcenter: core-service-document-center #文档中心 usercenter: core-service-usercenter-public #用户中心 + strategy-center: core-service-strategy-center #风控中心 file: font-address: /storage/fonts/ upload-address: /storage/reviewReport/ From 7a5ccf2b1e280a256d74d1d0f510efc17aeee130 Mon Sep 17 00:00:00 2001 From: yss <17921@qq.com> Date: Thu, 26 Aug 2021 13:35:39 +0800 Subject: [PATCH 03/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../blockchain/dao/mapper/SupplyBlockChainLogMapper.xml | 1 + .../ebtp/extend/blockchain/entity/SupplyBlockChainLog.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/SupplyBlockChainLogMapper.xml b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/SupplyBlockChainLogMapper.xml index 8760933..c82782c 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/SupplyBlockChainLogMapper.xml +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/SupplyBlockChainLogMapper.xml @@ -9,6 +9,7 @@ + diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/SupplyBlockChainLog.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/SupplyBlockChainLog.java index 4ce26ec..7fcf918 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/SupplyBlockChainLog.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/SupplyBlockChainLog.java @@ -52,6 +52,11 @@ public class SupplyBlockChainLog implements Serializable { */ @ApiModelProperty(value = "") private String turnId; + /** + * + */ + @ApiModelProperty(value = "调用接口的地址") + private String interfaceUrl; /** * 传参 From 551d74e59d5575025ac5f61cdcdcf7a2001d36c3 Mon Sep 17 00:00:00 2001 From: yss <17921@qq.com> Date: Thu, 26 Aug 2021 13:45:59 +0800 Subject: [PATCH 04/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ller.java => BlockChainLogController.java} | 24 +++++++++---------- .../blockchain/dao/BlockChainLogMapper.java | 13 ++++++++++ .../dao/SupplyBlockChainLogMapper.java | 13 ---------- ...nLogMapper.xml => BlockChainLogMapper.xml} | 4 ++-- ...yBlockChainLog.java => BlockChainLog.java} | 6 ++--- ...ervice.java => IBlockChainLogService.java} | 4 ++-- .../impl/BlockChainLogServiceImpl.java | 17 +++++++++++++ .../impl/SupplyBlockChainLogServiceImpl.java | 17 ------------- 8 files changed, 49 insertions(+), 49 deletions(-) rename src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/controller/{SupplyBlockChainLogController.java => BlockChainLogController.java} (51%) create mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/BlockChainLogMapper.java delete mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/SupplyBlockChainLogMapper.java rename src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/{SupplyBlockChainLogMapper.xml => BlockChainLogMapper.xml} (95%) rename src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/{SupplyBlockChainLog.java => BlockChainLog.java} (90%) rename src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/{ISupplyBlockChainLogService.java => IBlockChainLogService.java} (57%) create mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/impl/BlockChainLogServiceImpl.java delete mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/impl/SupplyBlockChainLogServiceImpl.java diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/controller/SupplyBlockChainLogController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/controller/BlockChainLogController.java similarity index 51% rename from src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/controller/SupplyBlockChainLogController.java rename to src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/controller/BlockChainLogController.java index 5439933..815bc73 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/controller/SupplyBlockChainLogController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/controller/BlockChainLogController.java @@ -3,8 +3,8 @@ package com.chinaunicom.mall.ebtp.extend.blockchain.controller; import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse; import com.chinaunicom.mall.ebtp.common.util.PropertyUtils; -import com.chinaunicom.mall.ebtp.extend.blockchain.entity.SupplyBlockChainLog; -import com.chinaunicom.mall.ebtp.extend.blockchain.service.ISupplyBlockChainLogService; +import com.chinaunicom.mall.ebtp.extend.blockchain.entity.BlockChainLog; +import com.chinaunicom.mall.ebtp.extend.blockchain.service.IBlockChainLogService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; @@ -15,24 +15,24 @@ import javax.validation.Valid; @RestController @Api(tags = "供应链+区块链接口调用日志") -@RequestMapping("/v1/supplyblockchainlog") -public class SupplyBlockChainLogController{ +@RequestMapping("/v1/blockchainlog") +public class BlockChainLogController { @Resource - private ISupplyBlockChainLogService isupplyBlockChainLogService; + private IBlockChainLogService iBlockChainLogService; /** * 插入新数据 * - * @param supplyBlockChainLog + * @param blockChainLog * * @return */ @ApiOperation("插入新数据") @PostMapping("") - public BaseResponse insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid SupplyBlockChainLog supplyBlockChainLog){ - supplyBlockChainLog.setId(PropertyUtils.getSnowflakeId()); - boolean save = isupplyBlockChainLogService.save(supplyBlockChainLog); + public BaseResponse insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid BlockChainLog blockChainLog){ + blockChainLog.setId(PropertyUtils.getSnowflakeId()); + boolean save = iBlockChainLogService.save(blockChainLog); return BaseResponse.success(save); } @@ -47,11 +47,11 @@ public class SupplyBlockChainLogController{ */ @ApiOperation("查询数据") @GetMapping("/{id}") - public BaseResponse get(@ApiParam(value = "主键id", required = true) @PathVariable String id){ + public BaseResponse get(@ApiParam(value = "主键id", required = true) @PathVariable String id){ - SupplyBlockChainLog supplyBlockChainLog = isupplyBlockChainLogService.getById(id); + BlockChainLog blockChainLog = iBlockChainLogService.getById(id); - return BaseResponse.success(supplyBlockChainLog); + return BaseResponse.success(blockChainLog); } diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/BlockChainLogMapper.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/BlockChainLogMapper.java new file mode 100644 index 0000000..22c42f1 --- /dev/null +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/BlockChainLogMapper.java @@ -0,0 +1,13 @@ +package com.chinaunicom.mall.ebtp.extend.blockchain.dao; + + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.chinaunicom.mall.ebtp.extend.blockchain.entity.BlockChainLog; + +/** +* @auto.generated + */ +public interface BlockChainLogMapper extends BaseMapper { + + +} diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/SupplyBlockChainLogMapper.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/SupplyBlockChainLogMapper.java deleted file mode 100644 index 28c830d..0000000 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/SupplyBlockChainLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.chinaunicom.mall.ebtp.extend.blockchain.dao; - - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.chinaunicom.mall.ebtp.extend.blockchain.entity.SupplyBlockChainLog; - -/** -* @auto.generated - */ -public interface SupplyBlockChainLogMapper extends BaseMapper { - - -} diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/SupplyBlockChainLogMapper.xml b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/BlockChainLogMapper.xml similarity index 95% rename from src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/SupplyBlockChainLogMapper.xml rename to src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/BlockChainLogMapper.xml index c82782c..bd42173 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/SupplyBlockChainLogMapper.xml +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/BlockChainLogMapper.xml @@ -1,9 +1,9 @@ - + + type="com.chinaunicom.mall.ebtp.extend.blockchain.entity.BlockChainLog"> diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/SupplyBlockChainLog.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java similarity index 90% rename from src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/SupplyBlockChainLog.java rename to src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java index 7fcf918..9e28fa4 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/SupplyBlockChainLog.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java @@ -10,7 +10,7 @@ import lombok.experimental.Accessors; import java.io.Serializable; /** - * 实体类 SupplyBlockChainLog + * 实体类 BlockChainLog * * @auto.generated */ @@ -18,8 +18,8 @@ import java.io.Serializable; @Accessors(chain = true) @ApiModel @EqualsAndHashCode(callSuper = false) -@TableName(value = "supply_block_chain_log", autoResultMap = true) -public class SupplyBlockChainLog implements Serializable { +@TableName(value = "block_chain_log", autoResultMap = true) +public class BlockChainLog implements Serializable { private static final long serialVersionUID = 1L; diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/ISupplyBlockChainLogService.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/IBlockChainLogService.java similarity index 57% rename from src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/ISupplyBlockChainLogService.java rename to src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/IBlockChainLogService.java index 1f78a0b..286128f 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/ISupplyBlockChainLogService.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/IBlockChainLogService.java @@ -2,14 +2,14 @@ package com.chinaunicom.mall.ebtp.extend.blockchain.service; import com.baomidou.mybatisplus.extension.service.IService; -import com.chinaunicom.mall.ebtp.extend.blockchain.entity.SupplyBlockChainLog; +import com.chinaunicom.mall.ebtp.extend.blockchain.entity.BlockChainLog; /** * 对数据表 supply_block_chain_log 操作的 service * @author Auto create * */ -public interface ISupplyBlockChainLogService extends IService { +public interface IBlockChainLogService extends IService { diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/impl/BlockChainLogServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/impl/BlockChainLogServiceImpl.java new file mode 100644 index 0000000..d990d97 --- /dev/null +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/impl/BlockChainLogServiceImpl.java @@ -0,0 +1,17 @@ +package com.chinaunicom.mall.ebtp.extend.blockchain.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.chinaunicom.mall.ebtp.extend.blockchain.dao.BlockChainLogMapper; +import com.chinaunicom.mall.ebtp.extend.blockchain.entity.BlockChainLog; +import com.chinaunicom.mall.ebtp.extend.blockchain.service.IBlockChainLogService; +import org.springframework.stereotype.Service; +/** + * 对数据表 supply_block_chain_log 操作的 serviceImpl + * blockchain + * + */ +@Service +public class BlockChainLogServiceImpl extends ServiceImpl implements IBlockChainLogService { + + +} diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/impl/SupplyBlockChainLogServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/impl/SupplyBlockChainLogServiceImpl.java deleted file mode 100644 index 0d2c2b1..0000000 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/service/impl/SupplyBlockChainLogServiceImpl.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.chinaunicom.mall.ebtp.extend.blockchain.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.chinaunicom.mall.ebtp.extend.blockchain.dao.SupplyBlockChainLogMapper; -import com.chinaunicom.mall.ebtp.extend.blockchain.entity.SupplyBlockChainLog; -import com.chinaunicom.mall.ebtp.extend.blockchain.service.ISupplyBlockChainLogService; -import org.springframework.stereotype.Service; -/** - * 对数据表 supply_block_chain_log 操作的 serviceImpl - * blockchain - * - */ -@Service -public class SupplyBlockChainLogServiceImpl extends ServiceImpl implements ISupplyBlockChainLogService { - - -} From c08fde58825c0eba556ae80c9b4ab770366b1294 Mon Sep 17 00:00:00 2001 From: yss <17921@qq.com> Date: Thu, 26 Aug 2021 14:03:01 +0800 Subject: [PATCH 05/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dao/mapper/BlockChainLogMapper.xml | 20 +++++++++---------- .../blockchain/entity/BlockChainLog.java | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/BlockChainLogMapper.xml b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/BlockChainLogMapper.xml index bd42173..6b0433a 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/BlockChainLogMapper.xml +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/dao/mapper/BlockChainLogMapper.xml @@ -4,16 +4,16 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java index 9e28fa4..0a540de 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java @@ -74,7 +74,7 @@ public class BlockChainLog implements Serializable { * 0-成功 1-失败 */ @ApiModelProperty(value = "0-成功 1-失败") - private String status; + private Integer status; From 334914dc5bb44bc9ee1436176b7f448205e2d348 Mon Sep 17 00:00:00 2001 From: dxc Date: Mon, 30 Aug 2021 10:45:50 +0800 Subject: [PATCH 06/44] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A3=8E=E9=99=A9?= =?UTF-8?q?=E7=AE=A1=E6=8E=A7=E9=85=8D=E7=BD=AE=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../riskmanage/service/impl/RiskManageServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java index f626ddc..7e3c52e 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/riskmanage/service/impl/RiskManageServiceImpl.java @@ -3,6 +3,7 @@ package com.chinaunicom.mall.ebtp.extend.riskmanage.service.impl; import com.chinaunicom.mall.ebtp.common.base.entity.BaseCacheUser; import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse; import com.chinaunicom.mall.ebtp.common.base.service.IBaseCacheUserService; +import com.chinaunicom.mall.ebtp.common.util.JsonUtils; import com.chinaunicom.mall.ebtp.extend.feign.client.RiskManageRegulationService; import com.chinaunicom.mall.ebtp.extend.feign.entity.risk.RiskManageRegulationGroupOuterVO; import com.chinaunicom.mall.ebtp.extend.feign.utils.CallRegulationUtil; @@ -11,6 +12,7 @@ import com.chinaunicom.mall.ebtp.extend.riskmanage.entity.RiskManageRegulationGr import com.chinaunicom.mall.ebtp.extend.riskmanage.entity.RiskManageRegulationVO; import com.chinaunicom.mall.ebtp.extend.riskmanage.service.IRiskManageService; import lombok.SneakyThrows; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import javax.annotation.Resource; @@ -22,6 +24,7 @@ import java.util.Map; * @author daixc * @date 2021/08/19 */ +@Slf4j @Service public class RiskManageServiceImpl implements IRiskManageService { @@ -55,7 +58,7 @@ public class RiskManageServiceImpl implements IRiskManageService { BaseCacheUser cacheUser = cacheUserService.getCacheUser(); regulationGroupApply.setOuterVoList(CallRegulationUtil.getCallRegulationMap(params,regulationParams,cacheUser.getOrganizationId())); - + log.info("调用山分风控接口参数:{}", JsonUtils.objectToJson(regulationGroupApply)); //校验信息 return regulationService.applyRegulation(regulationGroupApply); } From 32f84fb49d7e04b1bf938072989c04fda3e0f789 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Mon, 30 Aug 2021 14:00:30 +0800 Subject: [PATCH 07/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 8 +- .../controller/CrypConfigureController.java | 134 ++++++++++++++++++ .../dao/CrypConfigureMapper.java | 10 ++ .../dao/mapper/CrypConfigureMapper.xml | 31 ++++ .../extend/crypconfigure/entity/CrypBean.java | 35 +++++ .../crypconfigure/entity/CrypConfigure.java | 73 ++++++++++ .../service/ICrypConfigureService.java | 28 ++++ .../impl/CrypConfigureServiceImpl.java | 92 ++++++++++++ 8 files changed, 410 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java create mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/dao/CrypConfigureMapper.java create mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/dao/mapper/CrypConfigureMapper.xml create mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java create mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypConfigure.java create mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/ICrypConfigureService.java create mode 100644 src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java diff --git a/pom.xml b/pom.xml index 80857ba..c2bdade 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,13 @@ uboot-core 0.0.1-SNAPSHOT - + + + com.chinaunicom.mall.ebtp + uboot-common + 0.0.19-SNAPSHOT + + com.chinaunicom.ebtp mall-ebtp-cloud-attachment-sdk diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java new file mode 100644 index 0000000..47441d0 --- /dev/null +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java @@ -0,0 +1,134 @@ +package com.chinaunicom.mall.ebtp.extend.crypconfigure.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse; +import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypBean; +import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; +import com.chinaunicom.mall.ebtp.extend.crypconfigure.service.ICrypConfigureService; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import javax.annotation.Resource; +import javax.validation.Valid; +import java.util.List; + +@RestController +@Api(value = "区块链参数配置表") +@RequestMapping("/v1/crypconfigure") +public class CrypConfigureController{ + + @Resource + private ICrypConfigureService iCrypConfigureService; + +// /** +// * 插入新数据 +// * +// * @param crypConfigure +// * +// * @return +// */ +// @ApiOperation("插入新数据") +// @PostMapping +// public BaseResponse insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid CrypConfigure crypConfigure){ +// +// int i = iCrypConfigureService.insert(crypConfigure); +// +// return BaseResponse.success(i); +// } +// +// /** +// * 修改数据 +// * +// * @param crypConfigure +// * +// * @return +// */ +// @ApiOperation("修改数据") +// @PutMapping +// public BaseResponse update(@ApiParam(value = "对象数据", required = true) @RequestBody CrypConfigure crypConfigure){ +// +// Boolean i = iCrypConfigureService.updateCrypConfigureById(crypConfigure); +// +// return BaseResponse.success(i); +// } +// +// /** +// * 查询数据 +// * +// * @param id +// * +// * @return +// */ +// @ApiOperation("根据id查询数据") +// @GetMapping("/{id}") +// public BaseResponse get(@ApiParam(value = "主键id", required = true) @PathVariable String id){ +// +// CrypConfigure crypConfigure = iCrypConfigureService.getById(id); +// +// return BaseResponse.success(crypConfigure); +// } +// +// /** +// * 删除数据 +// * @param id 主键id +// * @return BaseResponse +// * @author dino +// * @date 2020/10/21 14:56 +// */ +// @ApiOperation(value = "delete",notes = "删除数据") +// @DeleteMapping("/{id}") +// public BaseResponse delete(@ApiParam(value = "主键id", required = true) @PathVariable Long id) { +// int i = iCrypConfigureService.deleteById(id); +// return BaseResponse.success(i); +// } + + /** + * 查询数据 + * + * @param param + * @return + */ + @ApiOperation("查询列表数据") + @GetMapping("/list") + public BaseResponse> list(@ApiParam(value = "查询对象数据", required = false) CrypConfigure param) { + //查询 + LambdaQueryWrapper query = Wrappers.lambdaQuery(param); + List list = iCrypConfigureService.list(query); + //异常处理 + //RespsExceptionEnum.FRAME_EXCEPTION_DEMO_NOT_FIND.customValid(list.isEmpty()); + return BaseResponse.success(list); + } + + /** + * 区块链数据加密 + * + * @param object + * @return + */ + @ApiOperation("区块链数据加密") + @PostMapping("/signObject") + public BaseResponse signObject(@RequestBody Object object) { + + return BaseResponse.success(this.iCrypConfigureService.signObject(object)); + } + + /** + * 区块链数据解密 + * + * @param bean + * @return + */ + @ApiOperation("区块链数据解密") + @PostMapping("/verifyObject") + public BaseResponse verifyObject(@RequestBody CrypBean bean) { + + return BaseResponse.success(this.iCrypConfigureService.verifyObject(bean)); + } +} diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/dao/CrypConfigureMapper.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/dao/CrypConfigureMapper.java new file mode 100644 index 0000000..16f76f1 --- /dev/null +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/dao/CrypConfigureMapper.java @@ -0,0 +1,10 @@ +package com.chinaunicom.mall.ebtp.extend.crypconfigure.dao; + + +import com.chinaunicom.mall.ebtp.common.base.dao.IBaseMapper; +import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; +import org.springframework.stereotype.Repository; + +@Repository +public interface CrypConfigureMapper extends IBaseMapper { +} diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/dao/mapper/CrypConfigureMapper.xml b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/dao/mapper/CrypConfigureMapper.xml new file mode 100644 index 0000000..605fa81 --- /dev/null +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/dao/mapper/CrypConfigureMapper.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + update biz_bid_cryp_configure + set + delete_flag="1" + where ID=#{id } + + \ No newline at end of file diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java new file mode 100644 index 0000000..1c6cee4 --- /dev/null +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java @@ -0,0 +1,35 @@ +package com.chinaunicom.mall.ebtp.extend.crypconfigure.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.chinaunicom.mall.ebtp.common.base.entity.BaseEntity; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** +* 实体类 CrypConfigure-区块链参数配置表 +* +* @author yss +*/ +@Data +public class CrypBean { + + /** + * 签名 + */ + @ApiModelProperty(value = "签名") + public String sing; + /** + * 待签名参数 + */ + @ApiModelProperty(value = "待签名参数") + public Object object; + +} diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypConfigure.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypConfigure.java new file mode 100644 index 0000000..bcb83cc --- /dev/null +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypConfigure.java @@ -0,0 +1,73 @@ +package com.chinaunicom.mall.ebtp.extend.crypconfigure.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.chinaunicom.mall.ebtp.common.base.entity.BaseEntity; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** +* 实体类 CrypConfigure-区块链参数配置表 +* +* @author yss +*/ +@Data +@Accessors(chain = true) +@TableName(value = "biz_bid_cryp_configure", autoResultMap = true) +@ApiModel(value = "CrypConfigure对象", description = "区块链参数配置表") +public class CrypConfigure extends BaseEntity implements Serializable { + + private static final long serialVersionUID = 1L; + + @TableId + @ApiModelProperty(value = "主键ID") + private String id; + + @ApiModelProperty(value = "配置标识") + private String cCode; + + @ApiModelProperty(value = "配置说明") + private String cShow; + + @ApiModelProperty(value = "配置类型 1-区块链") + private Integer type; + + @ApiModelProperty(value = "值") + private String cValue; + + @ApiModelProperty(value = "备注") + private String remarks; + + @ApiModelProperty(value = "状态 0-失效 1-生效") + private Integer state; + + + + + + @ApiModelProperty(value = "租户ID") + private String tenantId; + + @ApiModelProperty(value = "租户名称") + private String tenantName; + + @ApiModelProperty(value = "删除标识") + private String deleteFlag; + + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "删除标识") + private LocalDateTime lastUpdateTime; + + @ApiModelProperty(value = "割接状态;0-割接数据,1-新数据") + private Integer cutoverStatus; + + +} diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/ICrypConfigureService.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/ICrypConfigureService.java new file mode 100644 index 0000000..663dc6b --- /dev/null +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/ICrypConfigureService.java @@ -0,0 +1,28 @@ +package com.chinaunicom.mall.ebtp.extend.crypconfigure.service; + + +import com.chinaunicom.mall.ebtp.common.base.service.IBaseService; +import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypBean; +import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; + +/** + * 对数据表 biz_bid_cryp_configure 操作的 service + * @author yss + * + */ +public interface ICrypConfigureService extends IBaseService { + + /** + * 加密 + * @param object + * @return + */ + CrypBean signObject(Object object); + + /** + * 解密 + * @param bean + * @return + */ + Boolean verifyObject(CrypBean bean); +} diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java new file mode 100644 index 0000000..b2e6a5d --- /dev/null +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -0,0 +1,92 @@ +package com.chinaunicom.mall.ebtp.extend.crypconfigure.service.impl; + + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.serializer.SerializerFeature; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl; +import com.chinaunicom.mall.ebtp.common.constant.CommonConstants; +import com.chinaunicom.mall.ebtp.common.crypto.service.CrypServiceImpl; +import com.chinaunicom.mall.ebtp.extend.crypconfigure.dao.CrypConfigureMapper; +import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypBean; +import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; +import com.chinaunicom.mall.ebtp.extend.crypconfigure.service.ICrypConfigureService; +import org.bouncycastle.util.encoders.Base64; +import org.springframework.stereotype.Service; + +import java.security.PrivateKey; +import java.util.List; + +/** + * 对数据表 biz_bid_cryp_configure 操作的 serviceImpl + * @author yss + * + */ +@Service +public class CrypConfigureServiceImpl extends BaseServiceImpl implements ICrypConfigureService { + /** + * 加密 + * @param object + * @return + */ + @Override + public CrypBean signObject(Object object){ + CrypBean bean = new CrypBean(); + try{ + bean.setObject(object); + //查询 + LambdaQueryWrapper query = Wrappers.lambdaQuery(); + query.eq(CrypConfigure::getState,"1") + .eq(CrypConfigure::getDeleteFlag, CommonConstants.STATUS_NORMAL) + .eq(CrypConfigure::getType,"1") + .eq(CrypConfigure::getCCode,"pem_key"); + + List list = this.list(query); + + CrypConfigure crypConfigure = list.get(0); + + String signValue = CrypServiceImpl.signObject2(bean.getObject(),crypConfigure.getCValue()); + + bean.setSing(signValue); + + return bean; + }catch (Exception e){ + log.error("加密异常:"+e); + } + + + return bean; + } + + /** + * 解密 + * @param bean + * @return + */ + @Override + public Boolean verifyObject(CrypBean bean){ + try{ + //查询 + LambdaQueryWrapper query = Wrappers.lambdaQuery(); + query.eq(CrypConfigure::getState,"1") + .eq(CrypConfigure::getDeleteFlag, CommonConstants.STATUS_NORMAL) + .eq(CrypConfigure::getType,"1") + .eq(CrypConfigure::getCCode,"crt_key"); + + List list = this.list(query); + log.debug("---------获取解密秘钥--------"); + CrypConfigure crypConfigure = list.get(0); + + Boolean b = CrypServiceImpl.verifyBytes(bean.getSing(), + JSON.toJSONBytes(bean.getObject(),SerializerFeature.MapSortField,SerializerFeature.SortField), + crypConfigure.getCValue()); + return b; + }catch (Exception e){ + + } + + + return false; + } +} From 30f342463ef3dc8a76e229779ae7de78a107c8e4 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Mon, 30 Aug 2021 14:49:56 +0800 Subject: [PATCH 08/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index b2e6a5d..136c62e 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -78,8 +78,8 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Tue, 31 Aug 2021 09:38:52 +0800 Subject: [PATCH 09/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/access_token1.0.jar | Bin 0 -> 30211 bytes pom.xml | 9 +++++++++ .../controller/CrypConfigureController.java | 7 +++++++ 3 files changed, 16 insertions(+) create mode 100644 lib/access_token1.0.jar diff --git a/lib/access_token1.0.jar b/lib/access_token1.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..aabd9395047f78ee2640309737a9e3893d50c417 GIT binary patch literal 30211 zcmb@tbC4&|vMt=UZFAbTZQHh{e{J`)ZQIkfZ5z|JZFj#p_na^8doS)i@xF*#QGZlK z?c5a=ktynX_V?Mu!Hz-kzg>a!uN5YiR`y0N_E!IX zHTr+C+Stg*`QLm1@4quK`RU;ZaQHWtIRBlc3&6_uKkU$eprD|DIu-xVpQib@c0wj5 zX3oy44mM`?^d`1O&d%9tHYzF_XnGuEWV-YyzYKweyiw5M@?OGJ%b~z!dvOMp-*4hJ zf+D5tJ+I*tx((J!Fa1sc!w%UP=0PdxU;bZ7Uje@7fb2{((jxiNNylmaxS{R`Mzj^p@N52zlCD- zWHQ<$e~yht8gIot6(G5;b`-D6x2Giw^87qp%><|m7$3kNGqWJ(rfKZpv#1oU;IZ7j z$uhN+={OrRRdghfiMi@)hUjXrcTFb<&3WdccK;wLWNXKX)@pZj_c3@8r6WF9E+`_> zES_cS_t=ptM#rPN=6NeemBMNhR!=QOElEa=89b?g(XQBtsiAlbG)ZIjR_R9`^IBXx zoH-(SzOjcng5m2(rN&@r5 zOH&dU2C1;$|EakjVD z@q0({d&hBR$MIoO5O5L|s`2u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zz4iB(6hQXIpufIP z>tbmU7a=Y2lmQ8R{C-(CRGF>lf~0C*!1)!18X%b@ofMQm|CzjrwCH2t@*>SV0XJvC z)%mwiY**L)tS3RdiBsqs@lr6E@};b0v^`4P2F?b&P0c;!#oKbt*6b>?jyt;5nkDgM zk)aIp#|F&abuC6EDCi}ky|GeQ>(bA9h`Ww%%Vk78)2mHc1x(eV+YUBXbHO9xeo(Td zd3!pk+?-4oTvSh4XtNWj4W}`{gAlko)+q-E!??E4||DU-Tzu%jOdCB+n7e9rT|6l+7U#l^GSMe|r^Vffd zUgY1a_}}Ig57M1~*Yq&Iz@=s-q-*2==XR0hrSs7PjJX+$Kc=M z|N83w(>lEO=YC3o`Tsg@4}a3VfA`RL`PE+-_<7N<-kyvE6vQ|_dV~Y{TZg0;!&%;c F`X6=meYOAq literal 0 HcmV?d00001 diff --git a/pom.xml b/pom.xml index c2bdade..07daa8b 100644 --- a/pom.xml +++ b/pom.xml @@ -100,6 +100,15 @@ ${basedir}/lib/aspose-words-16.8.0-jdk16.jar + + + cryp.access + accessToken + 1.0 + system + ${basedir}/lib/access_token1.0.jar + + org.apache.velocity velocity-tools diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java index 47441d0..63da22a 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java @@ -3,6 +3,7 @@ package com.chinaunicom.mall.ebtp.extend.crypconfigure.controller; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.chinaunicom.baas.util.AccessToken; import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse; import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypBean; import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; @@ -131,4 +132,10 @@ public class CrypConfigureController{ return BaseResponse.success(this.iCrypConfigureService.verifyObject(bean)); } + + public static void main(String[] args) { + String token = AccessToken.tokenCreate(); + System.out.println(token); + + } } From 445ca2720b3a3ce7336b8e95c22b3dc94103955d Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Tue, 31 Aug 2021 09:41:38 +0800 Subject: [PATCH 10/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/CrypConfigureController.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java index 63da22a..92c5159 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java @@ -133,9 +133,16 @@ public class CrypConfigureController{ return BaseResponse.success(this.iCrypConfigureService.verifyObject(bean)); } - public static void main(String[] args) { - String token = AccessToken.tokenCreate(); - System.out.println(token); + /** + * accessToken获取 + * + * @param bean + * @return + */ + @ApiOperation("accessToken获取") + @PostMapping("/getAccessToken") + public BaseResponse getAccessToken(@RequestBody CrypBean bean) { + return BaseResponse.success( AccessToken.tokenCreate()); } } From a8d60cb680af3dbb02b3992c0566c939ca8bb71c Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Tue, 31 Aug 2021 10:38:17 +0800 Subject: [PATCH 11/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/controller/CrypConfigureController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java index 92c5159..f330be8 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java @@ -140,8 +140,8 @@ public class CrypConfigureController{ * @return */ @ApiOperation("accessToken获取") - @PostMapping("/getAccessToken") - public BaseResponse getAccessToken(@RequestBody CrypBean bean) { + @GetMapping("/getAccessToken") + public BaseResponse getAccessToken() { return BaseResponse.success( AccessToken.tokenCreate()); } From a3c404986fc2e10b46880e24b3eb62cc8fcfc388 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Tue, 31 Aug 2021 10:39:06 +0800 Subject: [PATCH 12/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/controller/CrypConfigureController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java index f330be8..0d60c9e 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java @@ -136,7 +136,7 @@ public class CrypConfigureController{ /** * accessToken获取 * - * @param bean + * @param * @return */ @ApiOperation("accessToken获取") From 91b3957c4489d3387d31246fe2fc3a5704f20fdf Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Tue, 31 Aug 2021 13:56:44 +0800 Subject: [PATCH 13/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 136c62e..58ddd60 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -1,8 +1,6 @@ package com.chinaunicom.mall.ebtp.extend.crypconfigure.service.impl; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.serializer.SerializerFeature; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl; @@ -12,10 +10,8 @@ import com.chinaunicom.mall.ebtp.extend.crypconfigure.dao.CrypConfigureMapper; import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypBean; import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; import com.chinaunicom.mall.ebtp.extend.crypconfigure.service.ICrypConfigureService; -import org.bouncycastle.util.encoders.Base64; import org.springframework.stereotype.Service; -import java.security.PrivateKey; import java.util.List; /** From d7c556b9035d28be8afbb294968f6049c2a63a5f Mon Sep 17 00:00:00 2001 From: yss <17921@qq.com> Date: Tue, 31 Aug 2021 15:30:49 +0800 Subject: [PATCH 14/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/ebtp/extend/blockchain/entity/BlockChainLog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java index 0a540de..2da0cae 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java @@ -7,6 +7,8 @@ import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; import java.io.Serializable; /** @@ -76,6 +78,4 @@ public class BlockChainLog implements Serializable { @ApiModelProperty(value = "0-成功 1-失败") private Integer status; - - } From d51eb8dba57189a279ddd3b144ca4601e90ba777 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Tue, 31 Aug 2021 18:11:11 +0800 Subject: [PATCH 15/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/CrypConfigureController.java | 13 ++ .../extend/crypconfigure/entity/CrypBean.java | 19 +-- .../service/ICrypConfigureService.java | 6 + .../impl/CrypConfigureServiceImpl.java | 146 ++++++++++++++++-- 4 files changed, 158 insertions(+), 26 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java index 0d60c9e..174c3ca 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java @@ -107,6 +107,19 @@ public class CrypConfigureController{ return BaseResponse.success(list); } + /** + * 调用天擎接口 + * + * @param bean + * @return + */ + @ApiOperation("调用天擎接口") + @PostMapping("/callUniInterface") + public BaseResponse callUniInterface(@RequestBody CrypBean bean) { + + return BaseResponse.success(this.iCrypConfigureService.callUniInterface(bean)); + } + /** * 区块链数据加密 * diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java index 1c6cee4..57f99f6 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java @@ -1,17 +1,7 @@ package com.chinaunicom.mall.ebtp.extend.crypconfigure.entity; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.chinaunicom.mall.ebtp.common.base.entity.BaseEntity; -import com.fasterxml.jackson.annotation.JsonFormat; -import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import lombok.experimental.Accessors; -import org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.time.LocalDateTime; /** * 实体类 CrypConfigure-区块链参数配置表 @@ -25,11 +15,16 @@ public class CrypBean { * 签名 */ @ApiModelProperty(value = "签名") - public String sing; + public String sign; /** - * 待签名参数 + * 待签名参数 Map */ @ApiModelProperty(value = "待签名参数") public Object object; + /** + * 天擎接口地址 + */ + @ApiModelProperty(value = "天擎接口地址") + public String url; } diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/ICrypConfigureService.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/ICrypConfigureService.java index 663dc6b..865ffe8 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/ICrypConfigureService.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/ICrypConfigureService.java @@ -11,6 +11,12 @@ import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; * */ public interface ICrypConfigureService extends IBaseService { + /** + * 调用天擎接口 + * @param bean + * @return + */ + Boolean callUniInterface(CrypBean bean); /** * 加密 diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 58ddd60..ee6f644 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -1,18 +1,39 @@ package com.chinaunicom.mall.ebtp.extend.crypconfigure.service.impl; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl; import com.chinaunicom.mall.ebtp.common.constant.CommonConstants; import com.chinaunicom.mall.ebtp.common.crypto.service.CrypServiceImpl; +import com.chinaunicom.mall.ebtp.common.exception.common.CommonExceptionEnum; +import com.chinaunicom.mall.ebtp.common.uniBss.constant.UniBssConstant; +import com.chinaunicom.mall.ebtp.common.uniBss.entity.UniBss; +import com.chinaunicom.mall.ebtp.common.uniBss.entity.UniBssAttached; +import com.chinaunicom.mall.ebtp.common.uniBss.entity.UniBssBody; +import com.chinaunicom.mall.ebtp.common.uniBss.entity.UniBssHead; +import com.chinaunicom.mall.ebtp.common.uniBss.service.UniBssServiceImpl; +import com.chinaunicom.mall.ebtp.common.util.PropertyUtils; +import com.chinaunicom.mall.ebtp.extend.blockchain.entity.BlockChainLog; +import com.chinaunicom.mall.ebtp.extend.blockchain.service.IBlockChainLogService; import com.chinaunicom.mall.ebtp.extend.crypconfigure.dao.CrypConfigureMapper; import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypBean; import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; import com.chinaunicom.mall.ebtp.extend.crypconfigure.service.ICrypConfigureService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; +import javax.annotation.Resource; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; import java.util.List; +import java.util.Map; + +import static com.chinaunicom.mall.ebtp.common.uniBss.service.UniBssServiceImpl.MD5min; /** * 对数据表 biz_bid_cryp_configure 操作的 serviceImpl @@ -21,6 +42,61 @@ import java.util.List; */ @Service public class CrypConfigureServiceImpl extends BaseServiceImpl implements ICrypConfigureService { + + @Autowired + private IBlockChainLogService iBlockChainLogService; + + @Value("${mconfig.bss.app-id}") + private String app_id; + @Value("${mconfig.bss.app-secret}") + private String app_secret; + + /** + * 调用天擎接口 + * @param bean + * @return + */ + @Override + public Boolean callUniInterface(CrypBean bean){ + BlockChainLog log = new BlockChainLog(); + log.setId(PropertyUtils.getSnowflakeId()); + //天擎地址 + log.setInterfaceUrl(bean.getUrl()); + + + try { + //传入数据解密 + String sign = getSignValue(bean.getObject()); + + Map map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), Map.class); + map.put("sign", sign); + + String json = getUniBss(map); + log.setResult("天擎接口调用,地址:"+bean.getUrl()+",参数:"+json);//日志 + log.setParam(json); + + String str = UniBssServiceImpl.uniBssHttpPost(bean.getUrl(), json); + UniBss uniBssRsp = JSONArray.parseObject(str, UniBss.class); + if (uniBssRsp != null && UniBssConstant.RESP_CODE_00000.equals(uniBssRsp.getUniBssHead().getRespCode())) { + log.setStatus(0);//成功 + return true; + } else { + log.setStatus(1);//失败 + + CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.assertStringNotNullByKey("天擎接口调用错误," + + "RESP_CODE:" + uniBssRsp.getUniBssHead().getRespCode() + "" + + "(" + UniBssConstant.getRESP_CODE_Map(uniBssRsp.getUniBssHead().getRespCode()) + ")。" + + "RESP_DESC:" + uniBssRsp.getUniBssHead().getRespDesc(), bean); + } + }catch (Exception e){ + log.setStatus(1); + log.setResult(e.getMessage()); + } + + this.iBlockChainLogService.save(log); + + return false; + } /** * 加密 * @param object @@ -31,30 +107,72 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl query = Wrappers.lambdaQuery(); - query.eq(CrypConfigure::getState,"1") - .eq(CrypConfigure::getDeleteFlag, CommonConstants.STATUS_NORMAL) - .eq(CrypConfigure::getType,"1") - .eq(CrypConfigure::getCCode,"pem_key"); - List list = this.list(query); + String signValue = getSignValue(bean.getObject()); - CrypConfigure crypConfigure = list.get(0); - - String signValue = CrypServiceImpl.signObject2(bean.getObject(),crypConfigure.getCValue()); - - bean.setSing(signValue); + bean.setSign(signValue); return bean; }catch (Exception e){ log.error("加密异常:"+e); } - return bean; } + /** + * 获取加密签名 + * @param object + * @return + */ + private String getSignValue(Object object){ + //查询 + LambdaQueryWrapper query = Wrappers.lambdaQuery(); + query.eq(CrypConfigure::getState,"1") + .eq(CrypConfigure::getDeleteFlag, CommonConstants.STATUS_NORMAL) + .eq(CrypConfigure::getType,"1") + .eq(CrypConfigure::getCCode,"pem_key"); + + List list = this.list(query); + + CrypConfigure crypConfigure = list.get(0); + + String signValue = CrypServiceImpl.signObject2(object,crypConfigure.getCValue()); + + return signValue; + } + + /** + * 获取加密签名 + * @param map + * @return + */ + private String getUniBss(Map map){ + //获取token + Date date = new Date(); + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss SSS"); + SimpleDateFormat format2 = new SimpleDateFormat("yyyyMMddHHmmssSSS"); + String TIMESTAMP = format.format(date); + String TRANS_ID = format2.format(date) + (int) ((Math.random() * 9 + 1) * 100000); + String s = "APP_ID" + app_id + "TIMESTAMP" + TIMESTAMP + "TRANS_ID" + TRANS_ID + app_secret; + String token = MD5min(s); + UniBss uniBss = new UniBss(); + uniBss.setUniBssAttached(new UniBssAttached().setMediaInf("")); + + UniBssHead head = new UniBssHead(); + head.setAppId(app_id); + head.setTimeStamp(TIMESTAMP); + head.setTransId(TRANS_ID); + head.setToken(token); + uniBss.setUniBssHead(head); + + UniBssBody body = new UniBssBody(); + body.setSingleOrderQryReq(map); + + uniBss.setUniBssBody(body); + + return JSON.toJSONString(uniBss); + } /** * 解密 * @param bean @@ -74,7 +192,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Wed, 1 Sep 2021 14:00:03 +0800 Subject: [PATCH 16/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/crypconfigure/entity/CrypBean.java | 7 +++- .../impl/CrypConfigureServiceImpl.java | 37 ++++++++++++------- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java index 57f99f6..10a6833 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/entity/CrypBean.java @@ -10,7 +10,12 @@ import lombok.Data; */ @Data public class CrypBean { - + /** + * 能力req名称 + * BIDDING_PUBLISH_REQ 发标 + */ + @ApiModelProperty(value = "能力req名称") + public String reqName; /** * 签名 */ diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index ee6f644..152c341 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -5,15 +5,14 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.chinaunicom.baas.util.AccessToken; +import com.chinaunicom.mall.ebtp.common.base.service.IBaseCacheUserService; import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl; import com.chinaunicom.mall.ebtp.common.constant.CommonConstants; import com.chinaunicom.mall.ebtp.common.crypto.service.CrypServiceImpl; import com.chinaunicom.mall.ebtp.common.exception.common.CommonExceptionEnum; import com.chinaunicom.mall.ebtp.common.uniBss.constant.UniBssConstant; -import com.chinaunicom.mall.ebtp.common.uniBss.entity.UniBss; -import com.chinaunicom.mall.ebtp.common.uniBss.entity.UniBssAttached; -import com.chinaunicom.mall.ebtp.common.uniBss.entity.UniBssBody; -import com.chinaunicom.mall.ebtp.common.uniBss.entity.UniBssHead; +import com.chinaunicom.mall.ebtp.common.uniBss.entity.*; import com.chinaunicom.mall.ebtp.common.uniBss.service.UniBssServiceImpl; import com.chinaunicom.mall.ebtp.common.util.PropertyUtils; import com.chinaunicom.mall.ebtp.extend.blockchain.entity.BlockChainLog; @@ -26,7 +25,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; -import javax.annotation.Resource; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; @@ -46,6 +44,9 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), Map.class); + Map map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), Map.class); map.put("sign", sign); - String json = getUniBss(map); + String json = getUniBss(bean.getReqName(),map); log.setResult("天擎接口调用,地址:"+bean.getUrl()+",参数:"+json);//日志 log.setParam(json); @@ -147,7 +147,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map){ + private String getUniBss(String reqName,Map map){ //获取token Date date = new Date(); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss SSS"); @@ -158,7 +158,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Wed, 1 Sep 2021 14:15:23 +0800 Subject: [PATCH 17/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 152c341..895c3cb 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -176,6 +176,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Wed, 1 Sep 2021 14:17:47 +0800 Subject: [PATCH 18/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 895c3cb..9268388 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -72,10 +72,11 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Wed, 1 Sep 2021 16:52:36 +0800 Subject: [PATCH 19/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CrypConfigureServiceImpl.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 9268388..4b07f5b 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -69,7 +69,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), Map.class); - map.put("sign", sign); + map.put("SIGN", sign); String json = getUniBss(bean.getReqName(),map); @@ -137,7 +137,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl list = this.list(query); CrypConfigure crypConfigure = list.get(0); - + log.debug("加密参数:"+JSONArray.toJSONString(object)); String signValue = CrypServiceImpl.signObject2(object,crypConfigure.getCValue()); return signValue; @@ -172,7 +172,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl query = Wrappers.lambdaQuery(); @@ -203,7 +204,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl list = this.list(query); log.debug("---------获取解密秘钥--------"); CrypConfigure crypConfigure = list.get(0); - + log.debug("解密参数:"+JSONArray.toJSONString(bean.getObject())); Boolean b = CrypServiceImpl.verifyValue(bean.getSign(), bean.getObject(), crypConfigure.getCValue()); From ae23f4700c50f31db5621e020eb62d5a04a2fd6c Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Wed, 1 Sep 2021 17:17:36 +0800 Subject: [PATCH 20/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 4b07f5b..4054377 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -80,6 +80,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Thu, 2 Sep 2021 10:03:00 +0800 Subject: [PATCH 21/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/CrypConfigureServiceImpl.java | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 4054377..a51b6f4 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -26,10 +26,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import static com.chinaunicom.mall.ebtp.common.uniBss.service.UniBssServiceImpl.MD5min; @@ -68,7 +65,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), Map.class); + LinkedHashMap map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), LinkedHashMap.class); map.put("SIGN", sign); String json = getUniBss(bean.getReqName(),map); @@ -79,12 +76,21 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl rspMap = JSONArray.parseObject(JSONArray.toJSONString(rspObject), LinkedHashMap.class); + if(rspMap.get("Code")!=null&&"200".equals(rspMap.get("Code").toString())){ + log.setStatus(0);//成功 + this.iBlockChainLogService.save(log); + return true; + }else{ + log.setStatus(1);//失败 + this.iBlockChainLogService.save(log); + } + + return false; } else { log.setStatus(1);//失败 - CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.assertStringNotNullByKey("天擎接口调用错误," + "RESP_CODE:" + uniBssRsp.getUniBssHead().getRespCode() + "" + "(" + UniBssConstant.getRESP_CODE_Map(uniBssRsp.getUniBssHead().getRespCode()) + ")。" + @@ -140,7 +146,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map){ + private String getUniBss(String reqName, LinkedHashMap map){ //获取token Date date = new Date(); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss SSS"); From a6b7c7f4409a306a982a92ae5fdf130eb4ec5283 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 2 Sep 2021 10:20:39 +0800 Subject: [PATCH 22/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index a51b6f4..5f9f33b 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -71,7 +71,6 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Thu, 2 Sep 2021 10:23:12 +0800 Subject: [PATCH 23/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CrypConfigureServiceImpl.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 5f9f33b..5aac4b3 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -174,17 +174,20 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Thu, 2 Sep 2021 11:10:53 +0800 Subject: [PATCH 24/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ccess_token1.0.jar => access_token1.1.jar} | Bin 30211 -> 30144 bytes pom.xml | 2 +- .../controller/CrypConfigureController.java | 2 +- .../impl/CrypConfigureServiceImpl.java | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename lib/{access_token1.0.jar => access_token1.1.jar} (77%) diff --git a/lib/access_token1.0.jar b/lib/access_token1.1.jar similarity index 77% rename from lib/access_token1.0.jar rename to lib/access_token1.1.jar index aabd9395047f78ee2640309737a9e3893d50c417..ca28bb3f4655e354eb7f0a4641baf9467deef578 100644 GIT binary patch delta 4165 zcmZWt2{@GN`yNY%F=Q~7VeDhgzHf<;ea}wWOH7!NgytNC>|>^1-!<3uJm3A@_xn8G`@Yw8fA7RC({z2MVX-l%qXz*1i~s<$ z8w|@LNcS_y%TR-d0yR8Wr3-O};b>`eF^<9Z98R1!xoG)vj11TapkyxS3!XEN*~hDi zNh+ZZmjm3MoZ*R^uzw_Nk1oP;AUF(IAQH$#i8kgnlO2m;BVLh@_39(0`FuMFg zq^G8l-nIxrsBw#S!30} zk%Gk{?~f~R94I=@G3(nB-hYfo-uD4Zlz~M6I3p{5&;m4*z1d_`oUaByfdLkW9X#QP zbR`Uo-w$TI`w2L$4xF-0pMGBEY{TX}@P-W@f)~-m-*0POg>51=kp7#zXIImmuQ|5b z4cv2j(Kxp9ExKp0y#hhA$DHn!k#cIB)aQY{=OaR#bB@y8hXlF35S8aH+{3>3q`W~m1aQI zI?2#Wui+X zXlcQQ{6*76;T=_ES@_itaQGTo7utd*W~hhr53r>@7c(5tZ~VFoz_gs79bYeTSUvL~ zIRhP?dJ|qeXAdu)M=c&Q!@bapyLN#w2*C@(9BWI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`HN8(v3PH zY5;Trzlo~n4dV02K_FSe!%#d$l-35!wUvQE|KFKT`E!$=(U)8dTlpCap6g=DCib0*-ET6Jf3ZZqha+5xyQE zKullc_Hc4Dq0+j9!z_0ytHEmoA`j3UAVMUPMor@!31N2`K%jG{h)Xw!M4mt)VvV!| lxk*ZatAPrngPy>K=NWc0LkfZ)2*gGBekP3kv|cB>{{iH_^u_=H diff --git a/pom.xml b/pom.xml index 07daa8b..31f7e66 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ accessToken 1.0 system - ${basedir}/lib/access_token1.0.jar + ${basedir}/lib/access_token1.1.jar diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java index 174c3ca..35e5449 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/controller/CrypConfigureController.java @@ -156,6 +156,6 @@ public class CrypConfigureController{ @GetMapping("/getAccessToken") public BaseResponse getAccessToken() { - return BaseResponse.success( AccessToken.tokenCreate()); + return BaseResponse.success( AccessToken.tokenCreate("bidding")); } } diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 5aac4b3..06831c5 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -176,7 +176,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Thu, 2 Sep 2021 14:36:08 +0800 Subject: [PATCH 25/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/CrypConfigureServiceImpl.java | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 06831c5..d12d284 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -25,6 +25,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; +import java.io.UnsupportedEncodingException; import java.text.SimpleDateFormat; import java.util.*; @@ -140,6 +141,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl list = this.list(query); CrypConfigure crypConfigure = list.get(0); + log.debug("秘钥:"+crypConfigure.getCValue()); log.debug("加密参数:"+JSONArray.toJSONString(object)); String signValue = CrypServiceImpl.signObject2(object,crypConfigure.getCValue()); log.debug("加密结果:"+signValue); @@ -208,8 +210,8 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl list = this.list(query); - log.debug("---------获取解密秘钥--------"); CrypConfigure crypConfigure = list.get(0); + log.debug("解密秘钥:"+crypConfigure.getCValue()); log.debug("解密参数:"+JSONArray.toJSONString(bean.getObject())); Boolean b = CrypServiceImpl.verifyValue(bean.getSign(), bean.getObject(), @@ -221,4 +223,38 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl mapb= new HashMap<>(); + + Map map = new HashMap<>(1); + map.put("TENDERER_ID","8533"); + map.put("SHOPPINGCART_ID","L3307"); + map.put("AMOUNT","1000"); + map.put("TP_ID","L3307A"); + map.put("SECTION_ID","1111"); + + List list = new ArrayList(); + list.add(map); + //mapb.put("BODY_LIST",list); + + System.out.println(mapb); + + String pkey = "-----BEGIN PRIVATE KEY-----\n" + + "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgfb0OcgWWFJGaOmVI\n" + + "LxEpIRTsICs0ssgJZqpuZQUhTIGhRANCAAQ8dPtVEfZfm2wXdqoqYpColaJ4MxiJ\n" + + "rFoUUMepAwuIQLaSZIH1+YbUkr/P+ybC1cbiBMrZjCxiAimk7dLxmUkx\n" + + "-----END PRIVATE KEY-----"; + //"MEUCIQC0TNG+JlFa2kCwQOdYer69cA4psgDoK9ulqdKyK5BEwQIgFOlVofB+xDVOCSuj7t2Pp3z0fyyiuXPy5dRMsOMoh3U="; + String signature = CrypServiceImpl.signObject2(list,pkey); + System.out.println("signature of Map: "+signature); + boolean isOk = CrypServiceImpl.verifyObject(signature,list,CRT_PATH); + System.out.println("verify result of Map: "+ isOk); + + } } From 6edd9a309e979da9b2f5b5216c58350e2b2660fa Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 2 Sep 2021 15:46:38 +0800 Subject: [PATCH 26/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/CrypConfigureServiceImpl.java | 101 +++++++++--------- src/main/resources/adminNew.crt | 16 +++ src/main/resources/admin_certPrivateNew.pem | 5 + 3 files changed, 70 insertions(+), 52 deletions(-) create mode 100644 src/main/resources/adminNew.crt create mode 100644 src/main/resources/admin_certPrivateNew.pem diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index d12d284..369500a 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -10,6 +10,7 @@ import com.chinaunicom.mall.ebtp.common.base.service.IBaseCacheUserService; import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl; import com.chinaunicom.mall.ebtp.common.constant.CommonConstants; import com.chinaunicom.mall.ebtp.common.crypto.service.CrypServiceImpl; +import com.chinaunicom.mall.ebtp.common.crypto.tenderfee.test; import com.chinaunicom.mall.ebtp.common.exception.common.CommonExceptionEnum; import com.chinaunicom.mall.ebtp.common.uniBss.constant.UniBssConstant; import com.chinaunicom.mall.ebtp.common.uniBss.entity.*; @@ -23,9 +24,11 @@ import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; import com.chinaunicom.mall.ebtp.extend.crypconfigure.service.ICrypConfigureService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; +import org.springframework.core.io.ClassPathResource; import org.springframework.stereotype.Service; import java.io.UnsupportedEncodingException; +import java.net.URL; import java.text.SimpleDateFormat; import java.util.*; @@ -45,6 +48,12 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl query = Wrappers.lambdaQuery(); - query.eq(CrypConfigure::getState,"1") - .eq(CrypConfigure::getDeleteFlag, CommonConstants.STATUS_NORMAL) - .eq(CrypConfigure::getType,"1") - .eq(CrypConfigure::getCCode,"pem_key"); - - List list = this.list(query); - - CrypConfigure crypConfigure = list.get(0); - log.debug("秘钥:"+crypConfigure.getCValue()); log.debug("加密参数:"+JSONArray.toJSONString(object)); - String signValue = CrypServiceImpl.signObject2(object,crypConfigure.getCValue()); + URL pem = CrypConfigureServiceImpl.class.getClassLoader().getResource(PEM_PATH); + String signValue = CrypServiceImpl.signObject(object,pem.getPath()); log.debug("加密结果:"+signValue); return signValue; } @@ -178,7 +177,11 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl query = Wrappers.lambdaQuery(); - query.eq(CrypConfigure::getState,"1") - .eq(CrypConfigure::getDeleteFlag, CommonConstants.STATUS_NORMAL) - .eq(CrypConfigure::getType,"1") - .eq(CrypConfigure::getCCode,"crt_key"); - - List list = this.list(query); - CrypConfigure crypConfigure = list.get(0); - log.debug("解密秘钥:"+crypConfigure.getCValue()); log.debug("解密参数:"+JSONArray.toJSONString(bean.getObject())); - Boolean b = CrypServiceImpl.verifyValue(bean.getSign(), - bean.getObject(), - crypConfigure.getCValue()); + URL crt = CrypConfigureServiceImpl.class.getClassLoader().getResource(CRT_PATH); + + Boolean b = CrypServiceImpl.verifyObject(bean.getSign(),bean.getObject(),crt.getPath()); return b; }catch (Exception e){ @@ -224,37 +217,41 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl mapb= new HashMap<>(); +// Map mapb= new HashMap<>(); +// +// Map map = new HashMap<>(1); +// map.put("TENDERER_ID","8533"); +// map.put("SHOPPINGCART_ID","L3307"); +// map.put("AMOUNT","1000"); +// map.put("TP_ID","L3307A"); +// map.put("SECTION_ID","1111"); +// +// List list = new ArrayList(); +// list.add(map); +// //mapb.put("BODY_LIST",list); +// +// CrypConfigureServiceImpl crypService = new CrypConfigureServiceImpl(); +// CrypBean bean = crypService.signObject(list); +// System.out.println(bean); - Map map = new HashMap<>(1); - map.put("TENDERER_ID","8533"); - map.put("SHOPPINGCART_ID","L3307"); - map.put("AMOUNT","1000"); - map.put("TP_ID","L3307A"); - map.put("SECTION_ID","1111"); - - List list = new ArrayList(); - list.add(map); - //mapb.put("BODY_LIST",list); - - System.out.println(mapb); - - String pkey = "-----BEGIN PRIVATE KEY-----\n" + - "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgfb0OcgWWFJGaOmVI\n" + - "LxEpIRTsICs0ssgJZqpuZQUhTIGhRANCAAQ8dPtVEfZfm2wXdqoqYpColaJ4MxiJ\n" + - "rFoUUMepAwuIQLaSZIH1+YbUkr/P+ybC1cbiBMrZjCxiAimk7dLxmUkx\n" + - "-----END PRIVATE KEY-----"; - //"MEUCIQC0TNG+JlFa2kCwQOdYer69cA4psgDoK9ulqdKyK5BEwQIgFOlVofB+xDVOCSuj7t2Pp3z0fyyiuXPy5dRMsOMoh3U="; - String signature = CrypServiceImpl.signObject2(list,pkey); - System.out.println("signature of Map: "+signature); - boolean isOk = CrypServiceImpl.verifyObject(signature,list,CRT_PATH); - System.out.println("verify result of Map: "+ isOk); +// System.out.println(mapb); +// +// String pkey = "-----BEGIN PRIVATE KEY-----\n" + +// "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgfb0OcgWWFJGaOmVI\n" + +// "LxEpIRTsICs0ssgJZqpuZQUhTIGhRANCAAQ8dPtVEfZfm2wXdqoqYpColaJ4MxiJ\n" + +// "rFoUUMepAwuIQLaSZIH1+YbUkr/P+ybC1cbiBMrZjCxiAimk7dLxmUkx\n" + +// "-----END PRIVATE KEY-----"; +// //"MEUCIQC0TNG+JlFa2kCwQOdYer69cA4psgDoK9ulqdKyK5BEwQIgFOlVofB+xDVOCSuj7t2Pp3z0fyyiuXPy5dRMsOMoh3U="; +// String signature = CrypServiceImpl.signObject2(list,pkey); +// System.out.println("signature of Map: "+signature); +// boolean isOk = CrypServiceImpl.verifyObject(signature,list,CRT_PATH); +// System.out.println("verify result of Map: "+ isOk); } } diff --git a/src/main/resources/adminNew.crt b/src/main/resources/adminNew.crt new file mode 100644 index 0000000..08ff361 --- /dev/null +++ b/src/main/resources/adminNew.crt @@ -0,0 +1,16 @@ +-----BEGIN CERTIFICATE----- +MIICgjCCAimgAwIBAgIUYP62P06sD2LqFyrCW8gDB4EvOmowCgYIKoZIzj0EAwIw +ZzELMAkGA1UEBhMCQ04xETAPBgNVBAgTCFNoYW5Eb25nMQ4wDAYDVQQHEwVKaU5h +bjEYMBYGA1UEChMPYWRtaW50MDgxMmFvcmczMRswGQYDVQQDExJjYS5hZG1pbnQw +ODEyYW9yZzMwHhcNMjEwODMxMDYzMDAwWhcNMjIwODMxMDYzNTAwWjAzMRwwDQYD +VQQLEwZjbGllbnQwCwYDVQQLEwRvcmczMRMwEQYDVQQDDAphZG1pbkBvcmczMFkw +EwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEPHT7VRH2X5tsF3aqKmKQqJWieDMYiaxa +FFDHqQMLiEC2kmSB9fmG1JK/z/smwtXG4gTK2YwsYgIppO3S8ZlJMaOB5jCB4zAO +BgNVHQ8BAf8EBAMCB4AwDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUxhcLh6TJkZkr +4aj4/P9YvfuSWGwwKwYDVR0jBCQwIoAg39Z8xQV3+pq1DBYm7uNMvAqFNpkbsvGe +LZX537X16UEwFAYDVR0RBA0wC4IJSlpaSEpTLTcyMGEGCCoDBAUGBwgBBFV7ImF0 +dHJzIjp7ImhmLkFmZmlsaWF0aW9uIjoib3JnMyIsImhmLkVucm9sbG1lbnRJRCI6 +ImFkbWluQG9yZzMiLCJoZi5UeXBlIjoiY2xpZW50In19MAoGCCqGSM49BAMCA0cA +MEQCIHqfq7vUlpdZUzV/qOeIvmLpom4qKzVuBmp2Bkl5M0LNAiAl7Y9a6TiCMx9/ +0XMXsg5XS07GeLH9e94vY2y5GN/QZA== +-----END CERTIFICATE----- diff --git a/src/main/resources/admin_certPrivateNew.pem b/src/main/resources/admin_certPrivateNew.pem new file mode 100644 index 0000000..d364d17 --- /dev/null +++ b/src/main/resources/admin_certPrivateNew.pem @@ -0,0 +1,5 @@ +-----BEGIN PRIVATE KEY----- +MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgfb0OcgWWFJGaOmVI +LxEpIRTsICs0ssgJZqpuZQUhTIGhRANCAAQ8dPtVEfZfm2wXdqoqYpColaJ4MxiJ +rFoUUMepAwuIQLaSZIH1+YbUkr/P+ybC1cbiBMrZjCxiAimk7dLxmUkx +-----END PRIVATE KEY----- From b24c56993567beda0503d1fd4a60b0a66b92bc12 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 2 Sep 2021 15:55:37 +0800 Subject: [PATCH 27/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CrypConfigureServiceImpl.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 369500a..a12d172 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -72,10 +72,17 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), LinkedHashMap.class); + Object signObject = new Object(); + + if(map.get("BODY_LIST")!=null){ + signObject = map.get("BODY_LIST"); + }else{ + signObject =map; + } + //传入数据解密 + String sign = getSignValue(signObject); + map.put("SIGN", sign); String json = getUniBss(bean.getReqName(),map); From b240cd0542e38dbeefb446574d93bff0167a82fa Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 2 Sep 2021 16:23:23 +0800 Subject: [PATCH 28/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/CrypConfigureServiceImpl.java | 60 ++++++++++--------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index a12d172..4746bf2 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -22,11 +22,13 @@ import com.chinaunicom.mall.ebtp.extend.crypconfigure.dao.CrypConfigureMapper; import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypBean; import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; import com.chinaunicom.mall.ebtp.extend.crypconfigure.service.ICrypConfigureService; +import org.apache.commons.io.IOUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.io.ClassPathResource; import org.springframework.stereotype.Service; +import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.net.URL; import java.text.SimpleDateFormat; @@ -147,10 +149,15 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl mapb= new HashMap<>(); // -// Map map = new HashMap<>(1); -// map.put("TENDERER_ID","8533"); -// map.put("SHOPPINGCART_ID","L3307"); -// map.put("AMOUNT","1000"); -// map.put("TP_ID","L3307A"); -// map.put("SECTION_ID","1111"); -// -// List list = new ArrayList(); -// list.add(map); -// //mapb.put("BODY_LIST",list); -// -// CrypConfigureServiceImpl crypService = new CrypConfigureServiceImpl(); -// CrypBean bean = crypService.signObject(list); -// System.out.println(bean); + Map map = new HashMap<>(1); + map.put("TENDERER_ID","8533"); + map.put("SHOPPINGCART_ID","L3307"); + map.put("AMOUNT","1000"); + map.put("TP_ID","L3307A"); + map.put("SECTION_ID","1111"); + + List list = new ArrayList(); + list.add(map); + //mapb.put("BODY_LIST",list); + + CrypConfigureServiceImpl crypService = new CrypConfigureServiceImpl(); + CrypBean bean = crypService.signObject(list); + System.out.println(bean); -// System.out.println(mapb); -// // String pkey = "-----BEGIN PRIVATE KEY-----\n" + // "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgfb0OcgWWFJGaOmVI\n" + // "LxEpIRTsICs0ssgJZqpuZQUhTIGhRANCAAQ8dPtVEfZfm2wXdqoqYpColaJ4MxiJ\n" + // "rFoUUMepAwuIQLaSZIH1+YbUkr/P+ybC1cbiBMrZjCxiAimk7dLxmUkx\n" + // "-----END PRIVATE KEY-----"; -// //"MEUCIQC0TNG+JlFa2kCwQOdYer69cA4psgDoK9ulqdKyK5BEwQIgFOlVofB+xDVOCSuj7t2Pp3z0fyyiuXPy5dRMsOMoh3U="; + //"MEUCIQC0TNG+JlFa2kCwQOdYer69cA4psgDoK9ulqdKyK5BEwQIgFOlVofB+xDVOCSuj7t2Pp3z0fyyiuXPy5dRMsOMoh3U="; // String signature = CrypServiceImpl.signObject2(list,pkey); // System.out.println("signature of Map: "+signature); // boolean isOk = CrypServiceImpl.verifyObject(signature,list,CRT_PATH); From f67f010eebb10d5097fc54146bcf042b6a1d7e82 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 2 Sep 2021 16:43:13 +0800 Subject: [PATCH 29/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../blockchain/entity/BlockChainLog.java | 12 ++++++++ .../impl/CrypConfigureServiceImpl.java | 30 +++++++++++-------- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java index 2da0cae..c099bbd 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/blockchain/entity/BlockChainLog.java @@ -1,15 +1,22 @@ package com.chinaunicom.mall.ebtp.extend.blockchain.entity; +import com.baomidou.mybatisplus.annotation.FieldFill; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; +import com.chinaunicom.mall.ebtp.common.config.CustomLocalDateTimeTypeHandler; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; +import org.springframework.format.annotation.DateTimeFormat; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.io.Serializable; +import java.math.BigDecimal; +import java.time.LocalDateTime; /** * 实体类 BlockChainLog @@ -77,5 +84,10 @@ public class BlockChainLog implements Serializable { */ @ApiModelProperty(value = "0-成功 1-失败") private Integer status; + @TableField(fill = FieldFill.INSERT,typeHandler = CustomLocalDateTimeTypeHandler.class) + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ApiModelProperty("创建时间") + private LocalDateTime createDate; } diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 4746bf2..4975969 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -22,6 +22,7 @@ import com.chinaunicom.mall.ebtp.extend.crypconfigure.dao.CrypConfigureMapper; import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypBean; import com.chinaunicom.mall.ebtp.extend.crypconfigure.entity.CrypConfigure; import com.chinaunicom.mall.ebtp.extend.crypconfigure.service.ICrypConfigureService; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.IOUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; @@ -41,6 +42,7 @@ import static com.chinaunicom.mall.ebtp.common.uniBss.service.UniBssServiceImpl. * @author yss * */ +@Slf4j @Service public class CrypConfigureServiceImpl extends BaseServiceImpl implements ICrypConfigureService { @@ -68,10 +70,10 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), LinkedHashMap.class); @@ -89,34 +91,36 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl rspMap = JSONArray.parseObject(JSONArray.toJSONString(rspObject), LinkedHashMap.class); + if(rspMap.get("Code")!=null&&"200".equals(rspMap.get("Code").toString())){ - log.setStatus(0);//成功 - this.iBlockChainLogService.save(log); + log.debug("请求成功:"+rspMap); + blockChainLog.setStatus(0);//成功 + this.iBlockChainLogService.save(blockChainLog); return true; }else{ - log.setStatus(1);//失败 + blockChainLog.setStatus(1);//失败 } } else { - log.setStatus(1);//失败 + blockChainLog.setStatus(1);//失败 CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.assertStringNotNullByKey("天擎接口调用错误," + "RESP_CODE:" + uniBssRsp.getUniBssHead().getRespCode() + "" + "(" + UniBssConstant.getRESP_CODE_Map(uniBssRsp.getUniBssHead().getRespCode()) + ")。" + "RESP_DESC:" + uniBssRsp.getUniBssHead().getRespDesc(), bean); } }catch (Exception e){ - log.setStatus(1); - log.setResult(e.getMessage()); + blockChainLog.setStatus(1); + blockChainLog.setResult(e.getMessage()); } - this.iBlockChainLogService.save(log); + this.iBlockChainLogService.save(blockChainLog); return false; } From eef573f4f9deda187212e6e0839820a6593d1ac9 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 2 Sep 2021 17:03:12 +0800 Subject: [PATCH 30/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CrypConfigureServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 4975969..e3978bd 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -96,12 +96,12 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl rspMap = JSONArray.parseObject(JSONArray.toJSONString(rspObject), LinkedHashMap.class); - if(rspMap.get("Code")!=null&&"200".equals(rspMap.get("Code").toString())){ - log.debug("请求成功:"+rspMap); + if(rspMap!=null&&rspMap.get("Code")!=null&&"200".equals(rspMap.get("Code").toString())){ + System.out.println("请求成功:"+rspMap); blockChainLog.setStatus(0);//成功 this.iBlockChainLogService.save(blockChainLog); return true; From 0fca6f592bd62a90df2dad8fa58185abb9e0844c Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 2 Sep 2021 17:38:37 +0800 Subject: [PATCH 31/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CrypConfigureServiceImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index e3978bd..a4ba736 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -97,11 +97,10 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl rspMap = JSONArray.parseObject(JSONArray.toJSONString(rspObject), LinkedHashMap.class); - if(rspMap!=null&&rspMap.get("Code")!=null&&"200".equals(rspMap.get("Code").toString())){ - System.out.println("请求成功:"+rspMap); + String retJson = JSONArray.toJSONString(uniBssRsp.getUniBssBody()); + + if(retJson!=null&&!"".equals(retJson)&&retJson.indexOf("{\"Code\":200,")>=0){ blockChainLog.setStatus(0);//成功 this.iBlockChainLogService.save(blockChainLog); return true; From 94ffa556a86591ebdf8fb8d9dfe5b3179fd9bdd3 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Thu, 2 Sep 2021 17:52:26 +0800 Subject: [PATCH 32/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index a4ba736..55ee5ae 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -98,9 +98,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl=0){ + if(str!=null&&!"".equals(str)&&str.indexOf("_RSP\":{\"Code\":200,")>=0){ blockChainLog.setStatus(0);//成功 this.iBlockChainLogService.save(blockChainLog); return true; From 9c22f3ee0f706c5c27d049df0bd724aa0957961e Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Fri, 3 Sep 2021 08:56:21 +0800 Subject: [PATCH 33/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pom.xml b/pom.xml index 31f7e66..1474efd 100644 --- a/pom.xml +++ b/pom.xml @@ -23,12 +23,6 @@ 0.0.1-SNAPSHOT - - com.chinaunicom.mall.ebtp - uboot-common - 0.0.19-SNAPSHOT - - com.chinaunicom.ebtp mall-ebtp-cloud-attachment-sdk From aa9409284b94b06279e1e02d749ce145e9e3855f Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Fri, 3 Sep 2021 13:46:34 +0800 Subject: [PATCH 34/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 55ee5ae..29782e9 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -191,7 +191,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Fri, 3 Sep 2021 13:48:11 +0800 Subject: [PATCH 35/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 55ee5ae..29782e9 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -191,7 +191,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Fri, 3 Sep 2021 15:06:30 +0800 Subject: [PATCH 36/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 29782e9..867ac41 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -70,6 +70,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Mon, 6 Sep 2021 09:55:58 +0800 Subject: [PATCH 37/44] =?UTF-8?q?=E4=BC=A0=E5=85=A5=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BF=9D=E7=95=99null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 29782e9..598414a 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -3,6 +3,7 @@ package com.chinaunicom.mall.ebtp.extend.crypconfigure.service.impl; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.serializer.SerializerFeature; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.chinaunicom.baas.util.AccessToken; @@ -76,7 +77,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), LinkedHashMap.class); + LinkedHashMap map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject(),SerializerFeature.WriteMapNullValue), LinkedHashMap.class); Object signObject = new Object(); if(map.get("BODY_LIST")!=null){ From 21568b7a4e8318170fed39ef1f18d28ad86c0544 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Mon, 6 Sep 2021 14:57:07 +0800 Subject: [PATCH 38/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/ebtp/extend/BizServiceEbtpExtendApplication.java | 2 ++ .../service/impl/CrypConfigureServiceImpl.java | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/BizServiceEbtpExtendApplication.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/BizServiceEbtpExtendApplication.java index 58a2b47..05651ce 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/BizServiceEbtpExtendApplication.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/BizServiceEbtpExtendApplication.java @@ -16,6 +16,7 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; +import org.springframework.scheduling.annotation.EnableAsync; @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DruidDataSourceAutoConfigure.class}) @EnableFeignClients @@ -23,6 +24,7 @@ import org.springframework.context.annotation.ComponentScan; @MapperScan({"com.chinaunicom.mall.ebtp.extend.**.dao"}) @ComponentScan("com.chinaunicom.mall.ebtp.*") @EnableApolloConfig +@EnableAsync public class BizServiceEbtpExtendApplication { public static void main(String[] args) { diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 24934fe..a9c1117 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -28,6 +28,7 @@ import org.apache.commons.io.IOUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.io.ClassPathResource; +import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import java.io.InputStream; @@ -70,6 +71,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject(),SerializerFeature.WriteMapNullValue), LinkedHashMap.class); + Map map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject(),SerializerFeature.WriteMapNullValue), Map.class); Object signObject = new Object(); if(map.get("BODY_LIST")!=null){ signObject = map.get("BODY_LIST"); }else{ - signObject =map; + signObject = map; } //传入数据解密 String sign = getSignValue(signObject); @@ -169,7 +171,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map){ + private String getUniBss(String reqName, Map map){ //获取token Date date = new Date(); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss SSS"); From 5af0522e467eecd1800f9f163220b915a07606fc Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Mon, 6 Sep 2021 15:14:22 +0800 Subject: [PATCH 39/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crypconfigure/service/impl/CrypConfigureServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index a9c1117..4260376 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -80,7 +80,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject(),SerializerFeature.WriteMapNullValue), Map.class); + Map map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), Map.class); Object signObject = new Object(); if(map.get("BODY_LIST")!=null){ From d3d1749d5ec7573bd22f654cbc5cc99ecc50e5f5 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Mon, 6 Sep 2021 15:48:29 +0800 Subject: [PATCH 40/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/CrypConfigureServiceImpl.java | 48 +++++++++---------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 4260376..9a5747c 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -156,10 +156,10 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl mapb= new HashMap<>(); // - Map map = new HashMap<>(1); - map.put("TENDERER_ID","8533"); - map.put("SHOPPINGCART_ID","L3307"); - map.put("AMOUNT","1000"); - map.put("TP_ID","L3307A"); - map.put("SECTION_ID","1111"); +// Map map = new HashMap<>(1); +// map.put("TENDERER_ID","8533"); +// map.put("SHOPPINGCART_ID","L3307"); +// map.put("AMOUNT","1000"); +// map.put("TP_ID","L3307A"); +// map.put("SECTION_ID","1111"); - List list = new ArrayList(); - list.add(map); +// List list = new ArrayList(); +// list.add(map); //mapb.put("BODY_LIST",list); + String json = "{\"RESULT_ID\":\"123\",\"TP_ID\":\"12312\",\"SECTION_ID\":\"1232\",\"REPORT_ID\":\"12321\",\"RESULTDETAIL\":[{\"RESULT_DETAIL_ID\":\"12321\",\"RESULT_ID\":\"1232131\",\"TENDERER_ID\":\"12321321\",\"WINNER_CANDIDATE\":\"123213\",\"PRICE\":\"1232131\",\"PRICE_REVIEW\":\"12321321\",\"BUSINESS_SCORE\":\"123213213\",\"TECHNICAL_SCORE\":\"1232132\",\"SERVICE_SCORE\":\"123213\",\"PRICE_SCORE\":\"123213\",\"TOTAL_SCORE\":\"12321\",\"CONTRACTED_MONEY\":\"12321\",\"TAX_RATE_PRICE\":\"12321\"},{\"RESULT_DETAIL_ID\":\"12321\",\"RESULT_ID\":\"1232131\",\"TENDERER_ID\":\"12321321\",\"WINNER_CANDIDATE\":\"123213\",\"PRICE\":\"1232131\",\"PRICE_REVIEW\":\"12321321\",\"BUSINESS_SCORE\":\"123213213\",\"TOTAL_SCORE\":\"12321\",\"CONTRACTED_MONEY\":\"12321\",\"TAX_RATE_PRICE\":\"12321\",\"SCOREDETAIL\":[{\"RESULT_DETAIL_ID\":\"12321\",\"TENDERER_ID\":\"12321\",\"USER_ID\":\"12321\",\"BUSINESS_SCORE\":\"12321\",\"TECHNICAL_SCORE\":\"12312\",\"SERVICE_SCORE\":\"12321\",\"PRICE_SCORE\":\"12323\"}]}]}"; + Map jsonMap = JSONArray.parseObject(json,Map.class); CrypConfigureServiceImpl crypService = new CrypConfigureServiceImpl(); - CrypBean bean = crypService.signObject(list); - System.out.println(bean); + CrypBean bean = crypService.signObject(jsonMap); + bean.setSign("MEUCIQCqbcS4d8je+XvTwlSJ1/5IEgiZBYgJlQ+nU/oi2ZeLAgIgd+SZ72Hk8xdKhcVnxwrFsIL6gHMKOFDIbo4nLzmYroM="); + System.out.println("signature of Map: "+bean.getSign()); + boolean isOk = crypService.verifyObject(bean); + System.out.println("verify result of Map: "+ isOk); + -// String pkey = "-----BEGIN PRIVATE KEY-----\n" + -// "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgfb0OcgWWFJGaOmVI\n" + -// "LxEpIRTsICs0ssgJZqpuZQUhTIGhRANCAAQ8dPtVEfZfm2wXdqoqYpColaJ4MxiJ\n" + -// "rFoUUMepAwuIQLaSZIH1+YbUkr/P+ybC1cbiBMrZjCxiAimk7dLxmUkx\n" + -// "-----END PRIVATE KEY-----"; - //"MEUCIQC0TNG+JlFa2kCwQOdYer69cA4psgDoK9ulqdKyK5BEwQIgFOlVofB+xDVOCSuj7t2Pp3z0fyyiuXPy5dRMsOMoh3U="; -// String signature = CrypServiceImpl.signObject2(list,pkey); -// System.out.println("signature of Map: "+signature); -// boolean isOk = CrypServiceImpl.verifyObject(signature,list,CRT_PATH); -// System.out.println("verify result of Map: "+ isOk); } } From 7a8c26f1cb48c77d0234e6fda2d193d0154def40 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Mon, 6 Sep 2021 16:20:28 +0800 Subject: [PATCH 41/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CrypConfigureServiceImpl.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 9a5747c..beb6040 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -86,7 +86,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Mon, 6 Sep 2021 16:36:44 +0800 Subject: [PATCH 42/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/CrypConfigureServiceImpl.java | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index beb6040..1be218d 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -224,9 +224,13 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl jsonMap = JSONArray.parseObject(json,Map.class); + bean.setObject(jsonMap); + log.info("解密参数2:"+bean); InputStream is = CrypConfigureServiceImpl.class.getClassLoader().getResourceAsStream(CRT_PATH); - Boolean b = CrypServiceImpl.verifyValue(bean.getSign(),bean.getObject(),IOUtils.toString(is)); + Boolean b = CrypServiceImpl.verifyValue(bean.getSign(),jsonMap,IOUtils.toString(is)); return b; }catch (Exception e){ @@ -260,13 +264,16 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl Date: Mon, 6 Sep 2021 16:44:44 +0800 Subject: [PATCH 43/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CrypConfigureServiceImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 1be218d..596401d 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -156,9 +156,13 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl jsonMap = JSONArray.parseObject(json,Map.class); + + log.info("加密参数2:"+jsonMap); InputStream is = CrypConfigureServiceImpl.class.getClassLoader().getResourceAsStream(PEM_PATH); - signValue = CrypServiceImpl.signObject2(object,IOUtils.toString(is)); + signValue = CrypServiceImpl.signObject2(jsonMap,IOUtils.toString(is)); log.info("加密结果:"+signValue); }catch (Exception e){ From db24820fe1555d2f111f3ff06f2ae9dc292d2f20 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Tue, 7 Sep 2021 14:06:03 +0800 Subject: [PATCH 44/44] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/CrypConfigureServiceImpl.java | 62 ++++++++++++------- 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java index 596401d..ba1d66b 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/service/impl/CrypConfigureServiceImpl.java @@ -81,15 +81,9 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl map = JSONArray.parseObject(JSONArray.toJSONString(bean.getObject()), Map.class); - Object signObject = new Object(); - if(map.get("BODY_LIST")!=null){ - signObject = map.get("BODY_LIST"); - }else{ - signObject = bean.getObject(); - } //传入数据解密 - String sign = getSignValue(signObject); + String sign = getSignValue(map); map.put("SIGN", sign); @@ -156,16 +150,27 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl jsonMap = JSONArray.parseObject(json,Map.class); + Map jsonMap = JSONArray.parseObject(json,Map.class); + Object signObject = new Object(); + + if(jsonMap.get("BODY_LIST")!=null){ + List jsonList = (List)jsonMap.get("BODY_LIST"); + log.info("加密参数2:"+jsonList); + InputStream is = CrypConfigureServiceImpl.class.getClassLoader().getResourceAsStream(PEM_PATH); + signValue = CrypServiceImpl.signObject2(jsonList,IOUtils.toString(is)); + }else{ + log.info("加密参数2:"+jsonMap); + InputStream is = CrypConfigureServiceImpl.class.getClassLoader().getResourceAsStream(PEM_PATH); + signValue = CrypServiceImpl.signObject2(jsonMap,IOUtils.toString(is)); + } + - log.info("加密参数2:"+jsonMap); - InputStream is = CrypConfigureServiceImpl.class.getClassLoader().getResourceAsStream(PEM_PATH); - signValue = CrypServiceImpl.signObject2(jsonMap,IOUtils.toString(is)); log.info("加密结果:"+signValue); }catch (Exception e){ - + log.info("---------加密异常-"+e.getMessage()); } return signValue; } @@ -228,16 +233,25 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl jsonMap = JSONArray.parseObject(json,Map.class); - bean.setObject(jsonMap); - log.info("解密参数2:"+bean); - InputStream is = CrypConfigureServiceImpl.class.getClassLoader().getResourceAsStream(CRT_PATH); - Boolean b = CrypServiceImpl.verifyValue(bean.getSign(),jsonMap,IOUtils.toString(is)); - return b; - }catch (Exception e){ + Map jsonMap = JSONArray.parseObject(json, Map.class); + if(jsonMap.get("BODY_LIST")!=null){ + List jsonList = (List)jsonMap.get("BODY_LIST"); + log.info("解密参数2:"+jsonList); + InputStream is = CrypConfigureServiceImpl.class.getClassLoader().getResourceAsStream(CRT_PATH); + Boolean b = CrypServiceImpl.verifyValue(bean.getSign(), jsonList, IOUtils.toString(is)); + return b; + }else { + log.info("解密参数2:" + bean); + InputStream is = CrypConfigureServiceImpl.class.getClassLoader().getResourceAsStream(CRT_PATH); + Boolean b = CrypServiceImpl.verifyValue(bean.getSign(), jsonMap, IOUtils.toString(is)); + return b; + } + + }catch (Exception e){ + log.info("-----------解密失败"+e.getMessage()); } return false; @@ -261,7 +275,7 @@ public class CrypConfigureServiceImpl extends BaseServiceImpl