瀏覽代碼

默认公司0

tgz 2 年之前
父節點
當前提交
ddcb7d64d9
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/Modules/Trade/Pay/OrderArousePayAbstract.php

+ 4 - 1
app/Modules/Trade/Pay/OrderArousePayAbstract.php

@@ -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);
             }