新增错误提示

This commit is contained in:
Yutousama 2022-04-17 02:09:39 +08:00
parent 490ae1b9dc
commit 973a51428b

View File

@ -42,6 +42,7 @@ public class GetSeTu extends Model {
} }
String ret = HttpTools.get(url); String ret = HttpTools.get(url);
JSONObject json = JSONObject.parseObject(ret); JSONObject json = JSONObject.parseObject(ret);
System.out.println("json = " + json);
if(json.getJSONArray("data").size()==0){ if(json.getJSONArray("data").size()==0){
QQBotManager.getInstance().sendMessage(qq,"找不到喵~"); QQBotManager.getInstance().sendMessage(qq,"找不到喵~");
return; return;