From b20ed3327fa7ff7abeb7ac85e26d924f2f92566d Mon Sep 17 00:00:00 2001 From: "le.kuang" <1741461577@qq.com> Date: Tue, 7 Feb 2023 15:24:48 +0800 Subject: [PATCH] fix String and Integer equals --- .../com/java3y/austin/handler/script/impl/YunPianSmsScript.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/austin-handler/src/main/java/com/java3y/austin/handler/script/impl/YunPianSmsScript.java b/austin-handler/src/main/java/com/java3y/austin/handler/script/impl/YunPianSmsScript.java index 859f86e..882d0c6 100644 --- a/austin-handler/src/main/java/com/java3y/austin/handler/script/impl/YunPianSmsScript.java +++ b/austin-handler/src/main/java/com/java3y/austin/handler/script/impl/YunPianSmsScript.java @@ -97,7 +97,7 @@ public class YunPianSmsScript implements SmsScript { .msgContent(smsParam.getContent()) .seriesId(datum.getSid()) .chargingNum(Math.toIntExact(datum.getCount())) - .status(CommonConstant.ZERO.equals(datum.getCode()) ? SmsStatus.SEND_SUCCESS.getCode() : SmsStatus.SEND_FAIL.getCode()) + .status(0 == datum.getCode() ? SmsStatus.SEND_SUCCESS.getCode() : SmsStatus.SEND_FAIL.getCode()) .reportContent(datum.getMsg()) .created(Math.toIntExact(DateUtil.currentSeconds())) .updated(Math.toIntExact(DateUtil.currentSeconds()))