|
@@ -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('请上传文件');
|