微信模板消息 数量不能为负数
This commit is contained in:
@@ -75,6 +75,9 @@ public class WxAccountUtil {
|
||||
}
|
||||
|
||||
public void sendStockMsg(String typeName, String shopName, String productName, BigDecimal stockNum, String openId) {
|
||||
if (stockNum.compareTo(BigDecimal.ZERO) <= 0) {
|
||||
stockNum = BigDecimal.ZERO;
|
||||
}
|
||||
String stockNumStr = stockNum.toPlainString();
|
||||
Map<String, Object> data = Map.of(
|
||||
//品名
|
||||
|
||||
Reference in New Issue
Block a user