diff --git a/extdbms/lib/Controllers/DBMS/Client/CouponController.php b/extdbms/lib/Controllers/DBMS/Client/CouponController.php index 522fb85..5e6c869 100644 --- a/extdbms/lib/Controllers/DBMS/Client/CouponController.php +++ b/extdbms/lib/Controllers/DBMS/Client/CouponController.php @@ -160,11 +160,10 @@ class CouponController extends ClientController // $history_query = "INSERT INTO `historydb` (`service_code`, `server_code`, `behavior_case`, `behavior`, `behavior_date`, `note`, `client_name`) VALUES ('$_GET[service_code]', '$service[server_code]', '도메인 쿠폰 구매 / $_GET[onetime_sub] 개', '도메인 쿠폰 구매', '$_GET[onetime_request_date]', '$member[name]', '$service[Client_Name]')"; // @mysql_query($history_query, $db_connect) or die($db_i_error); $this->getServiceService()->getModel()->commit(); - return $this->render(__FUNCTION__); + return $this->redirect->back()->with('success', ['message' => '쿠폰 사용이 완료되었습니다.']); } catch (\PDOException $e) { $this->getServiceService()->getModel()->rollback(); - echo $e->getMessage(); - return $this->redirect->back()->withInput()->with('error', ['message' => '쿠폰 사용에 실패하였습니다.']); + return $this->redirect->back()->withInput()->with('error', ['message' => '쿠폰 사용에 실패하였습니다.:' . $e->getMessage()]); } } } //Class