|
@@ -302,7 +302,7 @@ public class AccompanyFragment extends BaseMVPFragment<FragmentAccompanyBinding,
|
|
if (webSocketClient.isClosed()) {
|
|
if (webSocketClient.isClosed()) {
|
|
webSocketClient.reconnectBlocking();
|
|
webSocketClient.reconnectBlocking();
|
|
} else {
|
|
} else {
|
|
- webSocketClient.connectBlocking();
|
|
|
|
|
|
+ webSocketClient.reconnectBlocking();
|
|
}
|
|
}
|
|
} else if (webSocketClient.getReadyState() == ReadyState.CLOSED) {
|
|
} else if (webSocketClient.getReadyState() == ReadyState.CLOSED) {
|
|
webSocketClient.reconnectBlocking();
|
|
webSocketClient.reconnectBlocking();
|
|
@@ -1865,14 +1865,14 @@ public class AccompanyFragment extends BaseMVPFragment<FragmentAccompanyBinding,
|
|
public void savePicture(String base64, String uuid) {
|
|
public void savePicture(String base64, String uuid) {
|
|
try {
|
|
try {
|
|
File file = com.cooleshow.base.utils.FileUtils.saveBase64ImgToLocalFile(base64);
|
|
File file = com.cooleshow.base.utils.FileUtils.saveBase64ImgToLocalFile(base64);
|
|
- sendSavePicCallBack("savePicture", "success",uuid);
|
|
|
|
|
|
+ sendSavePicCallBack("savePicture", "success", uuid);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- sendSavePicCallBack("savePicture", "fail",uuid);
|
|
|
|
|
|
+ sendSavePicCallBack("savePicture", "fail", uuid);
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- private void sendSavePicCallBack(String api, String result,String uuid) {
|
|
|
|
|
|
+ private void sendSavePicCallBack(String api, String result, String uuid) {
|
|
JSONObject jsonObject = new JSONObject();
|
|
JSONObject jsonObject = new JSONObject();
|
|
JSONObject contentJson = new JSONObject();
|
|
JSONObject contentJson = new JSONObject();
|
|
try {
|
|
try {
|