...
|
...
|
@@ -123,7 +123,7 @@ class Controller_News extends Controller_Abstract |
|
|
$content = $this->_request->content;
|
|
|
$pics = $this->_request->pics;
|
|
|
$thumb = $this->_request->thumb;
|
|
|
$is_video = $this->_request->is_video;
|
|
|
$is_video = $this->_request->is_video?1:0;
|
|
|
if(empty($title) || empty($content) || empty($thumb))
|
|
|
{
|
|
|
return $this->returnJson(false, 403, '','参数不能为空');
|
...
|
...
|
@@ -158,7 +158,7 @@ EOT; |
|
|
$content .= '<br/>'.$html;
|
|
|
}*/
|
|
|
$data = array('title' => $title, 'content' => $content, 'pics' => implode('|', $pics),'tag'=> $tag,
|
|
|
'thumb' => $thumb, 'thumb_size'=> $thumb_size);
|
|
|
'thumb' => $thumb, 'thumb_size'=> $thumb_size,'is_video'=>$is_video);
|
|
|
//新建
|
|
|
$id = Facade_News::setInfo($data);
|
|
|
foreach($brand_ids as $brandID)
|
...
|
...
|
|