null, 'month' => null, 'aux' => null, 'neutralView' => false, 'showMe' => true ]; $post = array_merge($defaultPost, parseJsonPost()); if($post['year']){ if($post['month'] < 1 || $post['month'] > 12){ returnJson([ 'result'=>false, 'reason'=>'잘못된 개월 값' ]); } $post['year'] = intval($post['year']); $post['month'] = intval($post['month']); } else{ $post['year'] = null; $post['month'] = null; } //TODO: DB를 받아오는 함수를 부른다. 부르는 함수는 func.php 쪽에 있는 것이 좋을 듯. 받아오는 방식은 map.php 참고. //TODO: 결과값을 반환한다. 반환하는 양식은 tmp_map/result.json 참고 $request = new MapRequest($post); returnJson(getWorldMap($request));