Browse Source

电商直投订单补充上报

shensong00 14 hours ago
parent
commit
eb3ccaf418

+ 1 - 1
app/Console/Commands/ECommerceUserActionsDataUpload.php

@@ -250,7 +250,7 @@ class ECommerceUserActionsDataUpload extends Command
250 250
         $isEnd = false;
251 251
         $isOrder = $isPurchase = 0;
252 252
 
253
-        if (!$isEnd) {
253
+        if (empty($data['ignore_black'])) {// 补单时跳过漏单逻辑
254 254
             // 使用漏单回传金额
255 255
             $amountEnable  = $data['amount_enable'];
256 256
             $amountSetvale = $data['amount_setvale'];

+ 10 - 3
app/Console/Commands/Test.php

@@ -106,10 +106,10 @@ class Test extends Command
106 106
 //           $this->sysCorpCustomerListTest();
107 107
 
108 108
 //           $this->quitStaffRelationDel();
109
-//           $this->ECommerceUserActionsDataUpload();
109
+           $this->ECommerceUserActionsDataUpload();
110 110
 //           $this->delRelationData();
111 111
 //           $this->updateDataRecord();
112
-           $this->batchMarkTag();
112
+//           $this->batchMarkTag();
113 113
 //           // 获取所有已激活客服列表
114 114
 //           $followUserList = DjUser::getUserIdList($corpid);
115 115
 //           $followUserList = json_decode(json_encode($followUserList), 1);
@@ -142,7 +142,14 @@ class Test extends Command
142 142
     }
143 143
 
144 144
     public function ECommerceUserActionsDataUpload() {
145
-        $orderList = YxOrder::query()->where('order_create_time', '>=', '2024-11-27')->whereNull('ad_report_click_id')->where('order_status', 1)->get();
145
+        $orderList = YxOrder::query()->where('tx_cps_id', 50801286)
146
+            ->where('order_create_time', '>=', '2024-11-28')
147
+            ->where('ad_report_order_status', 5)
148
+            ->where('order_status', 1)
149
+            ->where('payment_amount', '<', 99999)
150
+            ->orderBy('payment_amount', 'desc')
151
+            ->limit(3)
152
+            ->get();
146 153
         foreach($orderList as $orderInfo) {
147 154
             TencentAdAuth::intoActionAddListSecond($orderInfo->toArray());
148 155
         }