success('获取成功',HelpModel::lst($where)); } public function ify() { $this->success('获取成功',Category::getCategoryArray('help')); } public function apply(Request $request) { $where = UtilService::postMore( [ ['category_id',0], ['full_name',''], ['contact',''], ['id_card',''], ['title',''], ['info',''], ['userimage',''], ['userimages',''], ['sex',0], ['politics',0], ['birthday',''], ['address',''], ['company',''], ['unit_nature',''], ['monthly_income',0], ['annual_household_income',0], ['annual_household_income_average',0], ['identity',''], ['marriage',0], ['medical_insurance',0], ['object_features',0], ['reason',0], ['family',[]], ],$request ); $where['cid'] = $this->cid; $where['user_id'] = $this->auth->getUserinfo()['id']; $rs = HelpModel::help_create($where); if(!$rs) $this->error(HelpModel::getErrorInfo()); $this->success('申请成功',$rs); } public function lst(Request $request) { $where = UtilService::getMore( [ ['user_id',$this->auth->getUserinfo()['id']], ['page',1], ['limit',10], ['status',-2], ] ); return $this->success('获取成功',HelpModel::lst($where)); } public function view() { $id = input('id',0); if($id==0) $this->error('参数错误!'); $rs = HelpModel::info($id); if(!$rs)$this->error(HelpModel::getErrorInfo()); return $this->success('获取成功',$rs); } }