wupengfei 2 jaren geleden
bovenliggende
commit
8434504cfe
2 gewijzigde bestanden met toevoegingen van 6 en 5 verwijderingen
  1. 2 2
      .idea/workspace.xml
  2. 4 3
      application/api/controller/Video.php

+ 2 - 2
.idea/workspace.xml

@@ -3,7 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/view/user_video/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/user_video/index.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Video.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Video.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -230,7 +230,7 @@
       <workItem from="1675904734949" duration="20832000" />
       <workItem from="1675990026788" duration="13260000" />
       <workItem from="1676077132290" duration="20234000" />
-      <workItem from="1676250114476" duration="5004000" />
+      <workItem from="1676250114476" duration="5102000" />
     </task>
     <servers />
   </component>

+ 4 - 3
application/api/controller/Video.php

@@ -1,5 +1,6 @@
 <?php
 namespace app\api\controller;
+use AlibabaCloud\SDK\Vod\V20170321\Models\GetMediaDNAResultResponseBody\DNAResult\videoDNA\detail\input;
 use app\common\model\PlatformSwitch;
 use app\common\model\SeriesVideoCate;
 use app\common\model\User;
@@ -628,17 +629,17 @@ class Video extends Base
     }
 
     /**
-     * @title 用户删除视频记录
+     * @title 用户删除视频记录&&批量删除
      * @desc 用户删除视频记录
      * @author qc
      * @method POST
      * @url /api/Video/delUserVideo
      * @header name:Authorization require:1 desc:Token
-     * @param name:id type:int default:-- desc:id
+     * @param name:id type:int default:-- desc:记录id【多个逗号隔开】
      */
     public function delUserVideo()
     {
-        UserVideo::where(['user_id'=>$this->user_id,'id'=>input('post.id')])->update(['is_deleted'=>1]);
+        UserVideo::where(['user_id'=>$this->user_id])->where('id','in',input('post.id'))->update(['is_deleted'=>1]);
         $this->success('删除成功');
     }