request->post(); try { validate(ProPchAdd::class)->check($info); $info['creation_time'] = date('Y-m-d h:i:s', time()); $info['last_update_time'] = date('Y-m-d h:i:s', time()); $result = ProPchService::addProPch($info,$this->uuid()); if (!$result){ return $this->JsonError(1002); } }catch (ValidateException $e){ return $this->JsonError($e->getError(),0); } return $this->JsonResponse(200,"success",""); } }