浏览代码

素材池修改功能

zhaoxian 4 年之前
父节点
当前提交
e1b5ece9f4

+ 6 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/KuaishouProjectVideoGetController.java

@@ -123,9 +123,14 @@ public class KuaishouProjectVideoGetController {
      * @return
      */
     @PostMapping(value = "/offShelfVideo")
-    public Result<Object> offShelfVideo(KuaishouProjectVideoGet videoGet) {
+    public Result<Object> offShelfVideo(String id) {
         try {
+            if (Check.isNull(id)) {
+                return Result.error("缺失参数");
+            }
+            KuaishouProjectVideoGet videoGet = new KuaishouProjectVideoGet();
             videoGet.setStatus(1);
+            videoGet.setId(id);
             kuaishouProjectVideoGetService.updateById(videoGet);
             return Result.ok("success");
         } catch (Exception e) {