瀏覽代碼

订单发货

gorden 4 月之前
父節點
當前提交
4fe8c33852
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/admin/controller/order/WholeController.php

+ 1 - 1
app/admin/controller/order/WholeController.php

@@ -180,7 +180,7 @@ class WholeController extends Curd
 
         $express = OrderExpress::where('join_express_order_id', $orderId)->first();
         $premises = '';
-        if($express->order_express_type == '自提'){
+        if($express && $express->order_express_type == '自提'){
             $premises = $express->order_express_company;
         }
         // if (!empty($express->order_express_code)){