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