From 6a0b56194e6701dfa90a2e0378f3176ca566578b Mon Sep 17 00:00:00 2001 From: "YAS\\29473" <2947326429@qq.com> Date: Sat, 9 Aug 2025 16:04:11 +0800 Subject: [PATCH] update --- .../platform/util/ThirdPartyPlatformUtils.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/util/ThirdPartyPlatformUtils.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/util/ThirdPartyPlatformUtils.java index 846d84498..500351a31 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/util/ThirdPartyPlatformUtils.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/util/ThirdPartyPlatformUtils.java @@ -124,9 +124,19 @@ public class ThirdPartyPlatformUtils { * @param orderCode * @return */ - public static Boolean isNeedPushToThirdPartyPlatform(String orderCode,String operatorId) { - String operatorIdPrefix = StringUtils.substring(orderCode , 0 , 9); - return operatorIdPrefix.equals(operatorId); + public static boolean isNeedPushToThirdPartyPlatform(String orderCode,String operatorId) { + if (StringUtils.isNotBlank(orderCode)) { + if (orderCode.length() >= 9) { + String result = StringUtils.substring(orderCode, 0, 9); + return result.equals(operatorId); + } else { + // 订单长度不对 + return false; + } + } else { + //订单为空 + return false; + } } }