|
|
|
@@ -40,12 +40,14 @@ public class WxMsgModel extends TenantEntity { |
|
|
|
if (StringUtils.isBlank(content) || perSize <= 0 ) { |
|
|
|
return 1; |
|
|
|
} |
|
|
|
if (content.length() <= perSize) { |
|
|
|
StringBuffer sendContent = new StringBuffer("【").append(signature).append("】").append(content).append("回T退订"); |
|
|
|
if (sendContent.length() <= perSize) { |
|
|
|
return 1; |
|
|
|
} |
|
|
|
int count = content.length() % perSize; |
|
|
|
|
|
|
|
int count = sendContent.length() / perSize; |
|
|
|
int countSize = count * perSize; |
|
|
|
if (countSize < content.length()) { |
|
|
|
if (countSize < sendContent.length()) { |
|
|
|
return count+1; |
|
|
|
} |
|
|
|
return count; |
|
|
|
|