diff --git a/src/main/java/com/yutou/qqbot/Controllers/AppController.java b/src/main/java/com/yutou/qqbot/Controllers/AppController.java index 5cc3c58..ed07c24 100644 --- a/src/main/java/com/yutou/qqbot/Controllers/AppController.java +++ b/src/main/java/com/yutou/qqbot/Controllers/AppController.java @@ -61,6 +61,9 @@ public class AppController { public String sendQQ(@RequestBody JSONObject json) { File image = null; String ret; + if(json.getString("message").isEmpty()){ + return "not message"; + } if (json.containsKey("image")) { image = HttpTools.syncDownload(json.getString("image"), System.currentTimeMillis() + ".png"); }