260803_04_BUG: 본문 바이트 크기 비교 부등호 방향 버그
This commit is contained in:
@@ -149,7 +149,7 @@ public final class TemplateContentSanitizer {
|
|||||||
|
|
||||||
public static SendType determineSms(String outTitle, String outBody){
|
public static SendType determineSms(String outTitle, String outBody){
|
||||||
boolean hasTitle = StringUtil.hasText(outTitle);
|
boolean hasTitle = StringUtil.hasText(outTitle);
|
||||||
boolean isLargeBody = utf8ByteLength(outBody) <= SMS_MAX_BYTES_UTF8;
|
boolean isLargeBody = utf8ByteLength(outBody) >= SMS_MAX_BYTES_UTF8;
|
||||||
|
|
||||||
return hasTitle || isLargeBody ? SendType.LMS_MMS : SendType.SMS;
|
return hasTitle || isLargeBody ? SendType.LMS_MMS : SendType.SMS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user