vrfcReqModel 수정
This commit is contained in:
@@ -4,7 +4,7 @@ namespace App\Models\Entities;
|
|||||||
|
|
||||||
use CodeIgniter\Model;
|
use CodeIgniter\Model;
|
||||||
|
|
||||||
class V2articleInfoModel extends Model
|
class V2articleinfoModel extends Model
|
||||||
{
|
{
|
||||||
protected $table = 'v2_article_info';
|
protected $table = 'v2_article_info';
|
||||||
protected $primaryKey = 'vr_sq';
|
protected $primaryKey = 'vr_sq';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ namespace App\Models\Entities;
|
|||||||
|
|
||||||
use CodeIgniter\Model;
|
use CodeIgniter\Model;
|
||||||
|
|
||||||
class V2articleInfoEtcModel extends Model
|
class V2articleinfoetcModel extends Model
|
||||||
{
|
{
|
||||||
protected $table = 'v2_article_info_etc';
|
protected $table = 'v2_article_info_etc';
|
||||||
protected $primaryKey = 'vr_sq';
|
protected $primaryKey = 'vr_sq';
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ namespace App\Services;
|
|||||||
use CodeIgniter\CLI\CLI;
|
use CodeIgniter\CLI\CLI;
|
||||||
use App\Libraries\NaverApiClient;
|
use App\Libraries\NaverApiClient;
|
||||||
use App\Models\Entities\VrfcReqModel;
|
use App\Models\Entities\VrfcReqModel;
|
||||||
use App\Models\Entities\V2articleInfoModel;
|
use App\Models\Entities\V2articleinfoModel;
|
||||||
use App\Models\Entities\V2articleInfoetcModel;
|
use App\Models\Entities\V2articleinfoetcModel;
|
||||||
use App\Models\Entities\V2stdailyModel;
|
use App\Models\Entities\V2stdailyModel;
|
||||||
use App\Models\Entities\NaverRawStagingModel;
|
use App\Models\Entities\NaverRawStagingModel;
|
||||||
use App\Models\Entities\ReceiptModel;
|
use App\Models\Entities\ReceiptModel;
|
||||||
@@ -290,12 +290,12 @@ class NaverService
|
|||||||
$vr_sq = $this->insertVrfcReq($vrfcParam);
|
$vr_sq = $this->insertVrfcReq($vrfcParam);
|
||||||
$articleInfoParam['vr_sq'] = $vr_sq;
|
$articleInfoParam['vr_sq'] = $vr_sq;
|
||||||
write_custom_log("articleInfoParam :: " . json_encode($articleInfoParam, JSON_UNESCAPED_UNICODE) , "INFO", "SERVICE");
|
write_custom_log("articleInfoParam :: " . json_encode($articleInfoParam, JSON_UNESCAPED_UNICODE) , "INFO", "SERVICE");
|
||||||
if (!$this->getModel('articleModel', V2articleInfoModel::class)->insert($articleInfoParam)) {
|
if (!$this->getModel('articleModel', V2articleinfoModel::class)->insert($articleInfoParam)) {
|
||||||
throw new \Exception("ArticleInfo Insert 실패: " . json_encode($this->db->error()));
|
throw new \Exception("ArticleInfo Insert 실패: " . json_encode($this->db->error()));
|
||||||
}
|
}
|
||||||
|
|
||||||
$articleInfoEtcParam['vr_sq'] = $vr_sq;
|
$articleInfoEtcParam['vr_sq'] = $vr_sq;
|
||||||
if (!$this->getModel('articleEtcModel', V2articleInfoetcModel::class)->insert($articleInfoEtcParam)) {
|
if (!$this->getModel('articleEtcModel', V2articleinfoetcModel::class)->insert($articleInfoEtcParam)) {
|
||||||
throw new \Exception("ArticleInfoEtc Insert 실패");
|
throw new \Exception("ArticleInfoEtc Insert 실패");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user