|
@@ -50,9 +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::firstOrCreate($params);
|
|
|
+ $order_id = Order::insertGetID($params);
|
|
|
if (!empty($data['send_order_id'])) {
|
|
|
- $order = Order::where('trade_no',$data['trade_no'])->first();
|
|
|
+ $order = Order::where('id',$order_id)->first();
|
|
|
try {
|
|
|
$account = DB::table('qapp_send_orders')->where('send_order_id',$data['send_order_id'])->value('account');
|
|
|
if ($account) {
|