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