1.耗材预警推送

This commit is contained in:
2024-07-25 14:19:23 +08:00
parent 5cb005ccd0
commit b864c24f2f
2 changed files with 13 additions and 47 deletions

View File

@@ -43,7 +43,7 @@ public class WxAccountUtil {
}
public static void main(String[] args) {
sendStockWarnMsg("13213", "31123", "234", "ojC-S6n2DDlpj52iVMoiLL0Ry4HI");
// sendStockWarnMsg("13213", "31123", "234", "ojC-S6n2DDlpj52iVMoiLL0Ry4HI");
}
public static String getRadarQrCode(Integer shopId) {
@@ -97,7 +97,7 @@ public class WxAccountUtil {
throw new RuntimeException(linkedHashMap.getOrDefault(resObj.get("errcode") + "", "未知错误"));
}
public static JSONObject sendStockWarnMsg(String shopName, String productName, String stock, String toUserOpenId) {
public JSONObject sendStockWarnMsg(String shopName, String productName, String stock, String toUserOpenId) {
Map<String, Object> data = new HashMap<String, Object>() {{
put("thing22", new HashMap<String, Object>(){{
put("value", shopName);