Files
sam-kd/bendingfee/_request.php
hskwon aca1767eb9 초기 커밋: 5130 레거시 시스템
- URL 하드코딩 → .env APP_URL 기반 동적 URL로 변경
- DB 연결 하드코딩 → .env 기반으로 변경
- MySQL strict mode DATE 오류 수정
2025-12-10 20:14:31 +09:00

28 lines
1.2 KiB
PHP

<?php
$num = $_REQUEST['num'] ?? NULL;
$major_category = $_REQUEST['major_category'] ?? NULL; // 대분류
$seconditem = $_REQUEST['seconditem'] ?? NULL; // 중분류
$model_name = $_REQUEST['model_name'] ?? NULL; // 모델명
$spec = $_REQUEST['spec'] ?? NULL; // 규격
$finishing_type = $_REQUEST['finishing_type'] ?? NULL; // 마감타입
$unitprice = $_REQUEST['unitprice'] ?? NULL; // 산출단가/M
$description = $_REQUEST['description'] ?? ''; // 메모
$created_at = $_REQUEST['created_at'] ?? date('Y-m-d H:i:s');
$updated_at = $_REQUEST['updated_at'] ?? NULL; // 수정일
$update_log = $_REQUEST['update_log'] ?? NULL;
$is_deleted = $_REQUEST['is_deleted'] ?? 0;
$priceDate = $_REQUEST['priceDate'] ?? '';
$check_type = $_REQUEST['check_type'] ?? '';
$box_width = $_REQUEST['box_width'] ?? '';
$box_height = $_REQUEST['box_height'] ?? '';
$front_bottom_width = $_REQUEST['front_bottom_width'] ?? '';
$rail_width = $_REQUEST['rail_width'] ?? '';
$exit_direction = $_REQUEST['exit_direction'] ?? '';
// savejson 컬럼: 전달받은 값이 배열이면 JSON 문자열로 변환, 아니면 그대로 사용
$savejson = $_REQUEST['savejson'] ?? [];
if (is_array($savejson)) {
$savejson = json_encode($savejson, JSON_UNESCAPED_UNICODE);
}
?>