getlists($area_id, $page, $limit); return $results; } function getdetaile($pro_id) { $result = new AroundModel(); $results = $result->getdetailes($pro_id); return $results; } function getorder($pro_id, $date, $pnum) { $result = new AroundModel(); $results = $result->getorders($pro_id, $date, $pnum); return $results; } function getdate($pro_id) { $result = new AroundModel(); $results = $result->getdate($pro_id); return $results; } function makeOrder($arr) { $check=$this->checkParamsForMakeOrder($arr); if($check['flag']){ $result = new AroundModel(); $results = $result->makeorders($arr); return $results; }else{ return $check; } } public function checkParamsForMakeOrder($arr) { if(Util::checkPattern('intVal', $arr['para_line_id']) == false) { $msg = '产品ID不合法'; } elseif(Util::checkPattern('date', $arr['para_start_date']) == false){ $msg = '非法日期'; }elseif(Util::checkPattern('date', $arr['para_start_date']) == false){ $msg = '非法日期'; }else { return Util::returnArrSu(); } return Util::returnArrEr($msg); } }