Commit 76964cbc by 王世昌

修复挡板bug

parent 91828174
...@@ -131,10 +131,11 @@ public class PlatformCouponRelationServiceImpl implements CouponRelationService ...@@ -131,10 +131,11 @@ public class PlatformCouponRelationServiceImpl implements CouponRelationService
} catch (Exception ex) { } catch (Exception ex) {
lastException = ex; lastException = ex;
sendMessage(orderBean, LogThreadLocal.getTrackingNo(), couponCodeVerificationDto, ex);
ErrorLog.printErrorLog("verification_error", "/api", couponCodeVerificationDto, ex); ErrorLog.printErrorLog("verification_error", "/api", couponCodeVerificationDto, ex);
} }
if (!ok || Objects.equals(baffleOpen,true)){ if (lastException != null){
sendMessage(orderBean, LogThreadLocal.getTrackingNo(), couponCodeVerificationDto, lastException);
}else if (!ok || Objects.equals(baffleOpen,true)){
sendMessage(orderBean, LogThreadLocal.getTrackingNo(), couponCodeVerificationDto, ok ? "模拟券核销失败" : couponCodeResponseDto); sendMessage(orderBean, LogThreadLocal.getTrackingNo(), couponCodeVerificationDto, ok ? "模拟券核销失败" : couponCodeResponseDto);
} }
if (!ok){ if (!ok){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment