新增错误提示
This commit is contained in:
parent
490ae1b9dc
commit
973a51428b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user