涩图模块:匹配正则
This commit is contained in:
parent
fdc1d7c880
commit
c0b394c613
@ -65,7 +65,6 @@ 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);
|
|
||||||
if (json.getJSONArray("data").size() == 0) {
|
if (json.getJSONArray("data").size() == 0) {
|
||||||
QQBotManager.getInstance().sendMessage(qq, "找不到喵~");
|
QQBotManager.getInstance().sendMessage(qq, "找不到喵~");
|
||||||
return;
|
return;
|
||||||
@ -99,6 +98,7 @@ public class GetSeTu extends Model {
|
|||||||
public void onError(Exception e) {
|
public void onError(Exception e) {
|
||||||
super.onError(e);
|
super.onError(e);
|
||||||
QQBotManager.getInstance().sendMessage(qq, "获取失败喵~");
|
QQBotManager.getInstance().sendMessage(qq, "获取失败喵~");
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user