wupengfei 2 лет назад
Родитель
Сommit
aa5b7076e0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      application/nutrition/controller/SeriesDatum.php

+ 1 - 1
application/nutrition/controller/SeriesDatum.php

@@ -165,7 +165,7 @@ class SeriesDatum extends Controller
             $datum_info = DatumIntro::where('id',$id)->find()->toArray();
             $cate_name = DatumCate::where('id',$datum_info['datum_cate'])->value('title');
             $this->fetch('add_datum',['datum_info'=>$datum_info,'cate_name'=>$cate_name]);
-        }else{
+        }else if($this->request->isPost()){
             list($post) = [$this->request->post()];
             var_dump($post);die();
             if(empty($post['url'])) $this->error('请上传文件');