diff --git a/jsowell-admin/src/main/java/com/jsowell/web/controller/thirdparty/hainan/HaiNanPlatformController.java b/jsowell-admin/src/main/java/com/jsowell/web/controller/thirdparty/hainan/HaiNanPlatformController.java index 608902937..b3b5e3d8e 100644 --- a/jsowell-admin/src/main/java/com/jsowell/web/controller/thirdparty/hainan/HaiNanPlatformController.java +++ b/jsowell-admin/src/main/java/com/jsowell/web/controller/thirdparty/hainan/HaiNanPlatformController.java @@ -17,6 +17,7 @@ import com.jsowell.thirdparty.lianlian.dto.CommonParamsDTO; import com.jsowell.thirdparty.lianlian.util.Cryptos; import com.jsowell.thirdparty.lianlian.util.Encodes; import com.jsowell.thirdparty.platform.AbsInterfaceWithPlatformLogic; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; @@ -31,6 +32,7 @@ import java.util.Map; @RequestMapping("/hainan") public class HaiNanPlatformController extends BaseController { // 使用海南平台处理逻辑 + @Autowired private AbsInterfaceWithPlatformLogic platformLogic = new HaiNanPlatformLogic(); /** @@ -45,7 +47,7 @@ public class HaiNanPlatformController extends BaseController { logger.info("海南平台请求令牌 result:{}", JSONObject.toJSONString(map)); return CommonResult.success(0, "请求令牌成功!", map.get("Data"), map.get("Sig")); } catch (Exception e) { - logger.error("海南平台 请求令牌接口 异常"); + logger.error("海南平台 请求令牌接口 异常", e); return CommonResult.failed("获取token发生异常"); } } diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/ThirdPartyPlatformConfigService.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/ThirdPartyPlatformConfigService.java index 59f5e22c1..dcc089870 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/ThirdPartyPlatformConfigService.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/ThirdPartyPlatformConfigService.java @@ -1,19 +1,19 @@ package com.jsowell.pile.service; -import java.util.List; import com.jsowell.pile.domain.ThirdPartyPlatformConfig; +import java.util.List; + /** * 对接平台配置信息Service接口 - * + * * @author jsowell * @date 2023-05-27 */ -public interface ThirdPartyPlatformConfigService -{ +public interface ThirdPartyPlatformConfigService { /** * 查询对接平台配置信息 - * + * * @param id 对接平台配置信息主键 * @return 对接平台配置信息 */ @@ -21,7 +21,7 @@ public interface ThirdPartyPlatformConfigService /** * 查询对接平台配置信息列表 - * + * * @param thirdPartyPlatformConfig 对接平台配置信息 * @return 对接平台配置信息集合 */ @@ -29,7 +29,7 @@ public interface ThirdPartyPlatformConfigService /** * 新增对接平台配置信息 - * + * * @param thirdPartyPlatformConfig 对接平台配置信息 * @return 结果 */ @@ -37,7 +37,7 @@ public interface ThirdPartyPlatformConfigService /** * 修改对接平台配置信息 - * + * * @param thirdPartyPlatformConfig 对接平台配置信息 * @return 结果 */ @@ -45,7 +45,7 @@ public interface ThirdPartyPlatformConfigService /** * 批量删除对接平台配置信息 - * + * * @param ids 需要删除的对接平台配置信息主键集合 * @return 结果 */ @@ -53,7 +53,7 @@ public interface ThirdPartyPlatformConfigService /** * 删除对接平台配置信息信息 - * + * * @param id 对接平台配置信息主键 * @return 结果 */ @@ -61,6 +61,7 @@ public interface ThirdPartyPlatformConfigService /** * 通过operatorId查询配置信息 + * * @param operatorId * @return */ diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/AbsInterfaceWithPlatformLogic.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/AbsInterfaceWithPlatformLogic.java index 6ffdb4304..02109e3e4 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/AbsInterfaceWithPlatformLogic.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/AbsInterfaceWithPlatformLogic.java @@ -293,14 +293,14 @@ public abstract class AbsInterfaceWithPlatformLogic implements InitializingBean map.put("TimeStamp", dto.getTimeStamp()); map.put("Seq", dto.getSeq()); String sign = GBSignUtils.sign(map, signSecret); - System.out.println(sign); + // System.out.println(sign); // 验证签名 得到请求方传过来的签名sig->自己拿到请求体后,再按双方约定的协议生成一个sig->对比两个sig是否一致 if (!StringUtils.equals(dto.getSig(), sign)) { System.out.println("签名校验==失败"); return null; } - System.out.println("签名校验通过!!!"); + // System.out.println("签名校验通过!!!"); // 解密data // byte[] plainText = Cryptos.aesDecrypt(Encodes.decodeBase64(dto.getData()), operatorSecret.getBytes(), operatorSecret.getBytes());