checkParamsForAdd($params); if ($check['flag'] == false) { return $check; } $userSuggest = new UserSuggest();//用户建议反馈表 $result = $userSuggest->addSuggest($params);//添加建议反馈 return $result; } /** * Function Description:参数校验 * Function Name: checkParamsForAdd * @param $params array * * @return array * * @author 倪宗锋 */ public function checkParamsForAdd($params) { if(empty($params['content'])) { return Util::returnArrEr('建议内容不能为空!'); } return Util::returnArrSu(); } }