tgz 2 anni fa
parent
commit
85e6f37166
1 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 7 7
      app/Modules/Trade/Pay/OrderPaySuccess.php

+ 7 - 7
app/Modules/Trade/Pay/OrderPaySuccess.php

@@ -25,15 +25,15 @@ class OrderPaySuccess
         $is_change = self::orderAcrossDay($order);
         $order->transaction_id = $transaction_id;
         if ($order) {
+            try {
+                //添加异步任务队列
+                $job = new QappOrder($trade_no);
+                dispatch($job->onConnection('redis')->onQueue('qapp_order_pay_success'));
+            } catch (Exception $e) {
+                sendNotice($e->getMessage());
+            }
             if ($order->status == 'PAID') {
                 myLog('pay_notify')->info('has_pay:' . $trade_no);
-                try {
-                    //添加异步任务队列
-                    $job = new QappOrder($trade_no);
-                    dispatch($job->onConnection('redis')->onQueue('qapp_order_pay_success'));
-                } catch (Exception $e) {
-                    sendNotice($e->getMessage());
-                }
                 return true;
             }
             if ($order->order_type == 'YEAR') {