|
|
@@ -188,8 +188,8 @@ public class SpeakerServiceImpl implements ISpeakerService {
|
|
|
String deviceIp =playVoList.get(0).getDeviceIp();
|
|
|
PlayBatchVo playBatchVo=commonPatchTextUrlVoice(texts,playVoList,playNum,level);
|
|
|
//清空原来队列
|
|
|
- stopPriorityMusic(playBatchVo.getSns());
|
|
|
- clearPlayMusic(playBatchVo.getSns());
|
|
|
+ //stopPriorityMusic(playBatchVo.getSns());
|
|
|
+ //clearPlayMusic(playBatchVo.getSns());
|
|
|
boolean isTrue = invokePost(JSONObject.toJSON(playBatchVo).toString(), deviceIp,1, playVoList.get(0).getPort());
|
|
|
if (isTrue) {
|
|
|
textParseVoiceAppIps(texts,playVoList,playNum,level);
|
|
|
@@ -217,13 +217,13 @@ public class SpeakerServiceImpl implements ISpeakerService {
|
|
|
|
|
|
@Override
|
|
|
public boolean clearPlayMusic(String[] sns) {
|
|
|
- logger.info("********************" + sns + "********************");
|
|
|
String remoteUrlIp = remoteAddress.getProtocol() + "://" + remoteAddress.getTtsIp() + ":" + remoteAddress.getRemotePort() + "/api/sendtodevice";
|
|
|
String token = getToken();
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("sns", sns);
|
|
|
jsonObject.put("type", "req");
|
|
|
jsonObject.put("name", "songs_queue_clear");
|
|
|
+ logger.info("********************" + jsonObject.toString() + "********************");
|
|
|
String responseStr = okHttpRequest.doPostJson(remoteUrlIp, token, jsonObject.toString());
|
|
|
logger.info("responseStr:+++++++++++++++++++++++++++" + responseStr + "+++++++++++++++++++++++++");
|
|
|
return tokenRefresh(responseStr);
|
|
|
@@ -231,13 +231,13 @@ public class SpeakerServiceImpl implements ISpeakerService {
|
|
|
|
|
|
@Override
|
|
|
public boolean stopPriorityMusic(String[] sns) {
|
|
|
- logger.info("********************" + sns + "********************");
|
|
|
String remoteUrlIp = remoteAddress.getProtocol() + "://" + remoteAddress.getTtsIp() + ":" + remoteAddress.getRemotePort() + "/api/sendtodevice";
|
|
|
String token = getToken();
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("sns", sns);
|
|
|
jsonObject.put("type", "req");
|
|
|
jsonObject.put("name", "priority_task_stop");
|
|
|
+ logger.info("********************" + jsonObject.toString() + "********************");
|
|
|
String responseStr = okHttpRequest.doPostJson(remoteUrlIp, token, jsonObject.toString());
|
|
|
logger.info("responseStr:+++++++++++++++++++++++++++" + responseStr + "+++++++++++++++++++++++++");
|
|
|
return tokenRefresh(responseStr);
|