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