Browse Source

订单回传

shensong00 17 hours ago
parent
commit
20dee6ad21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/Tencent/YxOrder.php

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

107
         if (
107
         if (
108
             $res->payment_amount > 0 &&
108
             $res->payment_amount > 0 &&
109
             $res->order_status == 1 &&
109
             $res->order_status == 1 &&
110
-            (isset($res->ad_report_order_status) && $res->ad_report_order_status == 0)// 已经进行过回传处理的订单此项数据会发生变化
110
+            (isset($res->ad_report_order_status) && empty($res->ad_report_order_status))// 已经进行过回传处理的订单此项数据会发生变化
111
             && ($res->payed_time <= date('Y-m-d H:i:s', strtotime('-40 minutes')))) {# 支付成功40分钟后再进行回传,尽量避免一些由于用户取消支付导致回传数据
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());