diff --git a/app/Services/NaverService.php b/app/Services/NaverService.php index e8349a8..09e8355 100644 --- a/app/Services/NaverService.php +++ b/app/Services/NaverService.php @@ -16,22 +16,27 @@ use Exception; class NaverService { protected $db; - protected $naverClient, $VrfcReqModel, $V2stdailyModel, $statusService, $rawStagingModel, $receiptModel, $resultModel , $articleModel; + protected $naverClient; + protected $VrfcReqModel; + protected $V2stdailyModel; + protected $statusService; + protected $rawStagingModel; + protected $receiptModel; + protected $resultModel; + protected $articleModel; public function __construct() { $this->db = \Config\Database::connect(); - $this->naverClient = new NaverApiClient(); - $this->VrfcReqModel = model(VrfcReqModel::class); - $this->articleModel = model(V2ArticleInfoModel::class); - $this->V2stdailyModel = model(V2stdailyModel::class); - $this->rawStagingModel = model(NaverRawStagingModel::class); + $this->VrfcReqModel = new VrfcReqModel(); + $this->articleModel = new V2ArticleInfoModel(); + $this->V2stdailyModel = new V2stdailyModel(); + $this->rawStagingModel = new NaverRawStagingModel(); + $this->receiptModel = new ReceiptModel(); + $this->resultModel = new ResultModel(); - - $this->receiptModel = model(ReceiptModel::class); - $this->resultModel = model(ResultModel::class); - $this->statusService = new StatusService(); // 인스턴스 생성 + $this->statusService = new StatusService(); helper('log'); }