作者 李宇航

合并分支 'lyh-server' 到 'master'

变更数据



查看合并请求 !3217
... ... @@ -147,7 +147,7 @@ class Ticket5UploadDataController extends BaseController
'type' => 'required',
'text' => 'required'
], [
'post_id.required' => 'project_id不能为空',
'post_id.required' => 'post_id不能为空',
'type.required' => '类型不能为空',
'text' => '数据详情不为空'
]);
... ... @@ -170,7 +170,7 @@ class Ticket5UploadDataController extends BaseController
}
$this->response('success');
}else{
$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]);
$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]);
if ($info === false) {
$this->param['project_type'] = $this->model::TYPE_FIVE ;
$id = $this->model->addReturnId($this->param);
... ...