wupengfei 2 years ago
parent
commit
df6cf8cb74
2 changed files with 4 additions and 5 deletions
  1. 1 2
      .idea/workspace.xml
  2. 3 3
      application/nutrition/controller/VideoUrl.php

+ 1 - 2
.idea/workspace.xml

@@ -4,7 +4,6 @@
     <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/controller/VideoUrl.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/controller/VideoUrl.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/view/video_url/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/video_url/form.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -152,7 +151,7 @@
       <workItem from="1659401482776" duration="4587000" />
       <workItem from="1659416262839" duration="13041000" />
       <workItem from="1659488112447" duration="6250000" />
-      <workItem from="1659575317059" duration="5756000" />
+      <workItem from="1659575317059" duration="6033000" />
     </task>
     <servers />
   </component>

+ 3 - 3
application/nutrition/controller/VideoUrl.php

@@ -132,11 +132,11 @@ class VideoUrl extends Controller
         if($this->request->isPost()){
             list($post) = [$this->request->post()];
             if($post['up_type'] == 1){
-                $post['url'] = $post['up_url'];
+                $data['url'] = $post['up_url'];
             }else{
-                $post['url'] = $post['path'];
+                $data['url'] = $post['path'];
             }
-            if(empty($post['url'])) $this->error('请上传视频');
+            if(empty($data['url'])) $this->error('请上传视频');
         }
 
     }