Quellcode durchsuchen

订单回传 调试

shensong00 vor 22 Stunden
Ursprung
Commit
8c41fe3432
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 5 5
      app/Models/Tencent/YxOrder.php

+ 5 - 5
app/Models/Tencent/YxOrder.php

@@ -99,18 +99,18 @@ class YxOrder extends Model
99 99
         $changes = $res->getDirty();
100 100
         $res->save();
101 101
 
102
-        if (array_key_exists('order_status', $changes) && $res->order_status == 1) {
102
+//        if (array_key_exists('order_status', $changes) && $res->order_status == 1) {
103 103
             # 数据回传
104
-            TencentAdAuth::intoActionAddListSecond($res->toArray());
105
-        }
104
+//            TencentAdAuth::intoActionAddListSecond($res->toArray());
105
+//        }
106 106
 
107 107
         if (
108
-//            $res->payment_amount > 0 &&
108
+            $res->payment_amount > 0 &&
109 109
             $res->order_status == 1 &&
110 110
             (isset($res->ad_report_order_status) && $res->ad_report_order_status == 0)// 已经进行过回传处理的订单此项数据会发生变化
111 111
             && ($res->payed_time <= date('Y-m-d H:i:s', strtotime('-40 minutes')))) {# 支付成功40分钟后再进行回传,尽量避免一些由于用户取消支付导致回传数据
112 112
             # 数据回传
113
-//            TencentAdAuth::intoActionAddListSecond($res->toArray());
113
+            TencentAdAuth::intoActionAddListSecond($res->toArray());
114 114
             Log::logInfo('订单回传入队列记录', [$res], 'YXorder');
115 115
         }
116 116