diff --git a/app/Model/v3/OrderMain.php b/app/Model/v3/OrderMain.php index 543061d..50bf981 100644 --- a/app/Model/v3/OrderMain.php +++ b/app/Model/v3/OrderMain.php @@ -78,7 +78,7 @@ class OrderMain extends Model if ($this->attributes['state'] == OrderState::DELIVERY) { if($this->attributes['shipping_type'] == 3) { return '待自提'; - }elseif ($this->attributes['shipping_type'] == 1 && !$this->attributes['horseman_id']){ + }elseif ($this->attributes['shipping_type'] == 1 && empty($this->attributes['horseman_id'])){ return '已接单'; } }