gorden 5 mesi fa
parent
commit
4fe8c33852
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)){