|
@@ -18,6 +18,7 @@ import java.io.IOException;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
@Slf4j
|
|
|
@Service
|
|
@@ -104,11 +105,17 @@ public class VideoServiceImpl implements VideoService {
|
|
|
@Override
|
|
|
public void miniProgramVideoOff(String traceId) {
|
|
|
try {
|
|
|
- String apiUrl = "http://47.99.132.47:8111/get_off_videos";
|
|
|
+ String apiUrl = "http://47.98.154.124:8111/get_off_videos";
|
|
|
log.info("miniProgramVideoOff,traceId:{}", traceId);
|
|
|
com.alibaba.fastjson.JSONObject params = new com.alibaba.fastjson.JSONObject();
|
|
|
params.put("traceId", traceId);
|
|
|
String post = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(apiUrl, params.toJSONString());
|
|
|
+ System.out.println(post);
|
|
|
+ JSONObject jsonObject = JSONUtil.parseObj(post);
|
|
|
+ String status = jsonObject.getStr("status");
|
|
|
+ if(!Objects.equals(status, "success")){
|
|
|
+ LarkRobotUtil.sendMessage("get_off_videos失败 traceId=" + traceId);
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
LarkRobotUtil.sendMessage("get_off_videos失败 traceId=" + traceId);
|
|
|
log.error("miniProgramVideoOff error {}", e.getMessage());
|