|
|
|
@ -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']); |
|
|
|
|