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) {
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");
}