first commit 2
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
|
||||
// 이 파일은 write_update.php 파일의 가장 마지막, 페이지 이동 직전에 include 됩니다.
|
||||
|
||||
if ($w == '' || $w == 'r') { // 새 글 또는 답변 글일 때만 실행
|
||||
if (isset($wr_id) && $wr_id) {
|
||||
// EstimateManager 클래스 파일 포함
|
||||
include_once(G5_ADMIN_PATH . '/code_manager/classes/EstimateManager.class.php');
|
||||
|
||||
try {
|
||||
$estimateManager = new EstimateManager();
|
||||
// $_POST 데이터를 사용하여 견적서 생성
|
||||
$estimate_id = $estimateManager->createCustomerRequest($wr_id, $_POST);
|
||||
|
||||
if (!$estimate_id) {
|
||||
// 견적서 저장 실패 시 로그를 남기거나 관리자에게 알림을 보낼 수 있습니다.
|
||||
// 예: error_log("견적서 저장 실패: wr_id={$wr_id}");
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
// 예외 발생 시 처리
|
||||
// 예: error_log("견적서 저장 중 예외 발생: " . $e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user