|
|
@@ -903,6 +903,22 @@ public class DahuaServiceImpl extends BaseService implements DahuaService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public AjaxResult algorithmTask(String channelId) {
|
|
|
+ String prBody = "";
|
|
|
+ try {
|
|
|
+ IccHttpHttpRequest pr = new IccHttpHttpRequest(host + "/evo-apigw/evo-gmai/1.4.0/api/algorithmTask/page?page=1&pageSize=100&taskName=&enabled=&channelCodes=" + channelId, Method.GET);
|
|
|
+ pr.getHttpRequest()
|
|
|
+ .header("Authorization", "bearer " + getTokenByPassword())
|
|
|
+ .header("User-Id", "1");
|
|
|
+ prBody = pr.execute();
|
|
|
+ return AjaxResult.success("操作成功", JSON.parseObject(prBody));
|
|
|
+ } catch (Exception ex) {
|
|
|
+ ex.printStackTrace();
|
|
|
+ return AjaxResult.error("操作失败", JSON.parseObject(prBody));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public AjaxResult startVideo(String channelId) {
|
|
|
Map<String, Object> param = new HashMap<>();
|
|
|
Map<String, Object> data = new HashMap<>();
|