|
@@ -32,6 +32,7 @@ import com.ozs.system.mapper.SysDictDataMapper;
|
|
|
import com.ozs.system.service.ISysDictTypeService;
|
|
|
import lombok.SneakyThrows;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import okhttp3.Response;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
@@ -489,8 +490,9 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
String result = null;
|
|
|
String url = bakUrl + "/api/gb28181/invite?id=" + cameraCode + "&channel=" + channel;
|
|
|
try {
|
|
|
- result = HttpClientUtil.get(url);
|
|
|
- log.info("result:{}", result);
|
|
|
+ Response response = HttpClientUtil.get(url);
|
|
|
+ log.info("result:{}", response.code());
|
|
|
+ return String.valueOf(response.code());
|
|
|
} catch (Exception e) {
|
|
|
log.info(e.getMessage());
|
|
|
e.printStackTrace();
|