作者 邓超

Merge branch 'develop' into dc

@@ -54,7 +54,7 @@ class ImageController @@ -54,7 +54,7 @@ class ImageController
54 $this->response('指定图片不存在!', Code::USER_ERROR); 54 $this->response('指定图片不存在!', Code::USER_ERROR);
55 } 55 }
56 //查看缩略图是否存在 56 //查看缩略图是否存在
57 -// $header['Content-Type'] = 'image/'.$info['type']; 57 + $header['Content-Type'] = 'image/'.$info['type'];
58 $filename = $this->path . $info['hash'] . $w . '_' . $h; 58 $filename = $this->path . $info['hash'] . $w . '_' . $h;
59 if(is_file($filename)){ 59 if(is_file($filename)){
60 $last_modified_time = gmdate(time() + ((30 * 60 * 60 * 24))) . " GMT"; 60 $last_modified_time = gmdate(time() + ((30 * 60 * 60 * 24))) . " GMT";
@@ -99,7 +99,7 @@ class NewsLogic extends BaseLogic @@ -99,7 +99,7 @@ class NewsLogic extends BaseLogic
99 } 99 }
100 //设置路由 100 //设置路由
101 RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_NEWS, $this->param['id'], $this->user['project_id']); 101 RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_NEWS, $this->param['id'], $this->user['project_id']);
102 - $this->model->edit($this->param,['id'=>$this->param['id']]); 102 + $this->edit($this->param,['id'=>$this->param['id']]);
103 DB::commit(); 103 DB::commit();
104 }catch (\exception $e){ 104 }catch (\exception $e){
105 DB::rollBack(); 105 DB::rollBack();