tgz 2 years ago
parent
commit
85de9f79a1
1 changed files with 2 additions and 3 deletions
  1. 2 3
      app/Modules/Trade/Pay/OrderArousePayAbstract.php

+ 2 - 3
app/Modules/Trade/Pay/OrderArousePayAbstract.php

@@ -50,10 +50,9 @@ abstract class OrderArousePayAbstract
             'activity_id'             => isset($data['activity_id']) ? $data['activity_id'] : 0,
             'inner_send_order_id'     => isset($data['inner_send_order_id']) ? $data['inner_send_order_id'] : '',
         ];
-        $order_id = Order::insertGetID($params);
-        myLog('test')->info('订单ID:'.$order_id);
+        $order = Order::firstOrCreate($params);
         if (!empty($data['send_order_id'])) {
-            $order = Order::where('id',$order_id)->first();
+            //$order = Order::where('id',$order_id)->first();
             //$order = DB::table('orders')->where('id',$order_id)->first();
             try {
                 $account =  DB::table('qapp_send_orders')->where('send_order_id',$data['send_order_id'])->value('account');