Przeglądaj źródła

课表数据同步更新

dzx 2 miesięcy temu
rodzic
commit
ed5d4176d4

+ 3 - 0
src/main/java/com/xjrsoft/common/utils/WeChatUtil.java

@@ -209,6 +209,9 @@ public class WeChatUtil {
         }
         String token = this.getToken(WeChatType.WEWEB);
         String result = HttpUtil.post("https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token, JSONObject.toJSONString(object));
+        if(!result.contains("ok")){
+            log.error(JSONObject.toJSONString(object), result);
+        }
         System.out.printf(result);
         return true;
     }