변경 파일 목록
총 2개
변경 파일 코드
추가삭제
변경 전GoodsListController.php
| use Framework\Debug\Exception\AlertBackException; | |
| use Framework\Debug\Exception\AlertOnlyException; | |
| use Framework\Debug\Exception\AlertRedirectException; | |
| use Framework\Debug\Exception\Framework\Debug\Exception; | |
| use Framework\Utility\ProducerUtils; | |
| use Message; | |
| * @version 1.0 | |
| * @since 1.0 | |
| * @copyright Copyright (c), Godosoft | |
| * @throws Except | |
| */ | |
| public function index() | |
| { | |
| } | |
| if (gd_isset($cateInfo['themeCd']) === null) { | |
| throw new \Exception(__('상품의 테마 설정을 확인해주세요.')); | |
| } | |
| if ($cateInfo['recomDisplayFl'] == 'y' && $cateInfo['recomGoodsNo']) { | |
| } | |
| } catch (AlertRedirectException $e) { | |
| throw $e; | |
| } catch (\Exception $e) { | |
| throw new AlertRedirectException($e->getMessage(),null,null,"/"); | |
| } | |
| $this->setData('goodsCategoryList', gd_isset($goodsCategoryList)); | |
변경 후GoodsListController.php
| use Framework\Debug\Exception\AlertBackException; | |
| use Framework\Debug\Exception\AlertOnlyException; | |
| use Framework\Debug\Exception\AlertRedirectException; | |
| use Framework\Debug\Exception\DatabaseException; | |
| use Framework\Debug\Exception\Framework\Debug\Exception; | |
| use Framework\Utility\ProducerUtils; | |
| use Message; | |
| * @version 1.0 | |
| * @since 1.0 | |
| * @copyright Copyright (c), Godosoft | |
| * @throws AlertRedirectException | |
| */ | |
| public function index() | |
| { | |
| } | |
| if (gd_isset($cateInfo['themeCd']) === null) { | |
| throw new AlertRedirectException(__('상품의 테마 설정을 확인해주세요.'), null, null, "/"); | |
| } | |
| if ($cateInfo['recomDisplayFl'] == 'y' && $cateInfo['recomGoodsNo']) { | |
| } | |
| } catch (AlertRedirectException $e) { | |
| throw $e; | |
| } catch (DatabaseException $e) { | |
| \Logger::channel('goods')->warning( | |
| sprintf('[%s:%d] %s', $e->getFile(), $e->getLine(), $e->getMessage()) | |
| ); | |
| throw new AlertRedirectException(__('잘못된 접근입니다.'), null, null, "/"); | |
| } catch (\Exception $e) { | |
| \Logger::channel('goods')->warning( | |
| sprintf('[%s:%d] %s', $e->getFile(), $e->getLine(), $e->getMessage()) | |
| ); | |
| throw new AlertRedirectException($e->getMessage(), null, null, "/"); | |
| } | |
| $this->setData('goodsCategoryList', gd_isset($goodsCategoryList)); | |
변경 전GoodsListController.php
| use Framework\Debug\Exception\AlertBackException; | |
| use Framework\Debug\Exception\AlertRedirectException; | |
| use Framework\Debug\Exception\Framework\Debug\Exception; | |
| use Message; | |
| use Globals; | |
| * @version 1.0 | |
| * @since 1.0 | |
| * @copyright Copyright (c), Godosoft | |
| * @throws Except | |
| */ | |
| public function index() | |
| { | |
| } | |
| if(gd_isset($cateInfo['themeCd']) ===null) { | |
| throw new \Exception(__('상품의 테마 설정을 확인해주세요.')); | |
| } | |
| // 마일리지 정보 | |
| } catch (AlertRedirectException $e) { | |
| throw $e; | |
| } catch (\Exception $e) { | |
| throw new AlertRedirectException($e->getMessage(),null,null,"/"); | |
| } | |
| } | |
| } | |
변경 후GoodsListController.php
| use Framework\Debug\Exception\AlertBackException; | |
| use Framework\Debug\Exception\AlertRedirectException; | |
| use Framework\Debug\Exception\DatabaseException; | |
| use Framework\Debug\Exception\Framework\Debug\Exception; | |
| use Message; | |
| use Globals; | |
| * @version 1.0 | |
| * @since 1.0 | |
| * @copyright Copyright (c), Godosoft | |
| * @throws AlertRedirectException | |
| */ | |
| public function index() | |
| { | |
| } | |
| if(gd_isset($cateInfo['themeCd']) ===null) { | |
| throw new AlertRedirectException(__('상품의 테마 설정을 확인해주세요.'), null, null, "/"); | |
| } | |
| // 마일리지 정보 | |
| } catch (AlertRedirectException $e) { | |
| throw $e; | |
| } catch (DatabaseException $e) { | |
| \Logger::channel('goods')->warning( | |
| sprintf('[%s:%d] %s', $e->getFile(), $e->getLine(), $e->getMessage()) | |
| ); | |
| throw new AlertRedirectException(__('잘못된 접근입니다.'), null, null, "/"); | |
| } catch (\Exception $e) { | |
| \Logger::channel('goods')->warning( | |
| sprintf('[%s:%d] %s', $e->getFile(), $e->getLine(), $e->getMessage()) | |
| ); | |
| throw new AlertRedirectException($e->getMessage(), null, null, "/"); | |
| } | |
| } | |
| } | |