fix upload message isEmpty

This commit is contained in:
Yutousama 2022-01-28 20:41:57 +08:00
parent e2083b1c47
commit 8d6fe31430

View File

@ -61,6 +61,9 @@ public class AppController {
public String sendQQ(@RequestBody JSONObject json) { public String sendQQ(@RequestBody JSONObject json) {
File image = null; File image = null;
String ret; String ret;
if(json.getString("message").isEmpty()){
return "not message";
}
if (json.containsKey("image")) { if (json.containsKey("image")) {
image = HttpTools.syncDownload(json.getString("image"), System.currentTimeMillis() + ".png"); image = HttpTools.syncDownload(json.getString("image"), System.currentTimeMillis() + ".png");
} }