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