Browse Source

订单状态提示

master
Lemon 5 years ago
parent
commit
3250988677
  1. 6
      app/Model/v3/OrderMain.php

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

Loading…
Cancel
Save