fix upload message isEmpty
This commit is contained in:
parent
e2083b1c47
commit
8d6fe31430
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user