gorden 5 сар өмнө
parent
commit
4fe8c33852

+ 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)){