rocket-a


git -C '/home/opc/rocketa.git' show 835288f -- app/Console/Commands/GetResultDatas.php

commit 835288f5a3e05926ffd82d1eb4e006802dce9bd8
Author: Satoshi Ujihara <satoshi_ujihara@fivegate.jp>
Date:   Tue Oct 7 17:46:15 2025 +0900

    顧客依存処理削除

diff --git a/app/Console/Commands/GetResultDatas.php b/app/Console/Commands/GetResultDatas.php
index 448938a..fa956ef 100644
--- a/app/Console/Commands/GetResultDatas.php
+++ b/app/Console/Commands/GetResultDatas.php
@@ -143,9 +143,9 @@ class GetResultDatas extends Command
             }
 
             // デジマース対応(仮にデジマースがhttps対応した場合削除する)
-            if ($result_record['ip'] == '118.238.4.197' && $result_record['client_id'] == 1) {
-                $result_record['ip'] = '218.216.135.93';
-            }
+            // if ($result_record['ip'] == '118.238.4.197' && $result_record['client_id'] == 1) {
+            //     $result_record['ip'] = '218.216.135.93';
+            // }
 
             // 必須パラメータチェック
             if (!$result_record['sid'] || !$result_record['ad_id'] || !$result_record['client_id']) {
@@ -332,15 +332,15 @@ class GetResultDatas extends Command
 
                     // 期間外の承認が来た場合は新たにエラーに落とす処理の追加
                     // 将来的にシステム化するが、今は急場しのぎでベタで対応
-                    if ($result_record['ad_id'] == 2041 || $result_record['ad_id'] == 2040 || $result_record['ad_id'] == 2039 || $result_record['ad_id'] == 2017) {
-                        if ($notice_at >= '2025-02-13 00:00:00') {
-                            if ($insert_result_data['status'] == 1) {
-                                // result_error_datas登録
-                                $this->insertResultErrorDatas($result_record, 16);
-                                continue;
-                            }
-                        }
-                    }
+                    // if ($result_record['ad_id'] == 2041 || $result_record['ad_id'] == 2040 || $result_record['ad_id'] == 2039 || $result_record['ad_id'] == 2017) {
+                    //     if ($notice_at >= '2025-02-13 00:00:00') {
+                    //         if ($insert_result_data['status'] == 1) {
+                    //             // result_error_datas登録
+                    //             $this->insertResultErrorDatas($result_record, 16);
+                    //             continue;
+                    //         }
+                    //     }
+                    // }
 
                     if ($insert_result_data['status'] == 1 || $insert_result_data['status'] == 2) {
                         $insert_result_data['fixed_at'] = $result_record['created_at'];
@@ -846,12 +846,12 @@ class GetResultDatas extends Command
 
             // ad_id:1935 の個別処理
             // 掲載が終了になり次第削除
-            if ($result_record['ad_id'] == 1935) {
-                if (isset($result_record['amount']) && $result_record['amount'] > 0) {
-                    $result_record['amount'] = (int)ceil($result_record['amount'] / (1 + (\Config::get('const.tax') / 100)));
-                    $insert_result_data['client_amount'] = $result_record['amount'];
-                }
-            }
+            // if ($result_record['ad_id'] == 1935) {
+            //     if (isset($result_record['amount']) && $result_record['amount'] > 0) {
+            //         $result_record['amount'] = (int)ceil($result_record['amount'] / (1 + (\Config::get('const.tax') / 100)));
+            //         $insert_result_data['client_amount'] = $result_record['amount'];
+            //     }
+            // }
 
             if ($sender_validate == 0) {
                 // result_error_datas登録
@@ -1442,7 +1442,7 @@ class GetResultDatas extends Command
                     $query[$media_other_key] = $media_other_value;
                 }
             }
-
+            /*
             // GMO個別処理
             if ($click_record['media_id'] == 3) {
                 $query['u1'] = $insert_result_data['sid'];
@@ -1626,7 +1626,7 @@ class GetResultDatas extends Command
                 $query['stage'] = $insert_result_data['client_stage'];
 
             }
-
+            */
             try {
                 $client = new Client();
                 $response = $client->get($path, [

diff.txt · 最終更新: by root