预设视频相关内容
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.yutou.nas.utils;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.yutou.nas.interfaces.DownloadInterface;
|
||||
import com.yutou.nas.interfaces.ObjectInterface;
|
||||
import redis.clients.jedis.Jedis;
|
||||
import redis.clients.jedis.JedisPool;
|
||||
import redis.clients.jedis.JedisPoolConfig;
|
||||
@@ -276,9 +278,11 @@ public class RedisTools {
|
||||
}
|
||||
}
|
||||
public static void processOut(InputStream inputStream) {
|
||||
|
||||
processOut(inputStream,null,true);
|
||||
}
|
||||
public static void processOut(InputStream inputStream, ObjectInterface objectInterface, boolean isOutQQBot){
|
||||
String tmp;
|
||||
StringBuilder str = new StringBuilder("null");
|
||||
StringBuilder str = new StringBuilder();
|
||||
try {
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
|
||||
while ((tmp = reader.readLine()) != null) {
|
||||
@@ -289,8 +293,13 @@ public class RedisTools {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
com.yutou.nas.utils.Log.i("cmd > " + str);
|
||||
QQBotManager.getInstance().sendMessage(str.toString());
|
||||
if(objectInterface!=null){
|
||||
objectInterface.out(str.toString());
|
||||
}
|
||||
// com.yutou.nas.utils.Log.i("cmd > " + str);
|
||||
if(isOutQQBot) {
|
||||
QQBotManager.getInstance().sendMessage(str.toString());
|
||||
}
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
RedisTools.pullMsg("msg", "abc");
|
||||
|
||||
Reference in New Issue
Block a user