作者 lyh

变更数据

@@ -147,7 +147,7 @@ class Ticket5UploadDataController extends BaseController @@ -147,7 +147,7 @@ class Ticket5UploadDataController extends BaseController
147 'type' => 'required', 147 'type' => 'required',
148 'text' => 'required' 148 'text' => 'required'
149 ], [ 149 ], [
150 - 'post_id.required' => 'project_id不能为空', 150 + 'post_id.required' => 'post_id不能为空',
151 'type.required' => '类型不能为空', 151 'type.required' => '类型不能为空',
152 'text' => '数据详情不为空' 152 'text' => '数据详情不为空'
153 ]); 153 ]);
@@ -170,7 +170,7 @@ class Ticket5UploadDataController extends BaseController @@ -170,7 +170,7 @@ class Ticket5UploadDataController extends BaseController
170 } 170 }
171 $this->response('success'); 171 $this->response('success');
172 }else{ 172 }else{
173 - $info = $this->model->read(['post_id' => $this->param['post_id'],'project_type'=>$this->model::TYPE_FIVE ,'type' => $this->param['type'], 'text' => $this->param['text'], 'status' => 0]); 173 + $info = $this->model->read(['project_id' => $this->param['post_id'],'project_type'=>$this->model::TYPE_FIVE ,'type' => $this->param['type'], 'text' => $this->param['text'], 'status' => 0]);
174 if ($info === false) { 174 if ($info === false) {
175 $this->param['project_type'] = $this->model::TYPE_FIVE ; 175 $this->param['project_type'] = $this->model::TYPE_FIVE ;
176 $id = $this->model->addReturnId($this->param); 176 $id = $this->model->addReturnId($this->param);