|
@@ -57,6 +57,9 @@ abstract class OrderArousePayAbstract
|
|
|
if ($account) {
|
|
|
$company_id = DB::table('qapp_channel_accounts')->where('account',$account)->value('company_id');
|
|
|
}
|
|
|
+ if (empty($company_id)) {
|
|
|
+ $company_id = 0;
|
|
|
+ }
|
|
|
$qapp_order = [
|
|
|
'order_id' => $order->id,
|
|
|
'order_created_at' => $order->created_at,
|
|
@@ -70,7 +73,7 @@ abstract class OrderArousePayAbstract
|
|
|
sendNotice('报警:'.$order->id.':此订单插入 qapp_orders 失败');
|
|
|
}
|
|
|
} catch (Exception $e) {
|
|
|
- sendNotice('报错:'.$e->getMessage());
|
|
|
+ sendNotice('报错:'.$e->getMessage().'-order:id'.$order->id);
|
|
|
}
|
|
|
|
|
|
|