Browse Source

待自提提示

master
Lemon 5 years ago
parent
commit
8e06f15a3a
  1. 4
      app/Model/v3/OrderMain.php

4
app/Model/v3/OrderMain.php

@ -75,11 +75,9 @@ class OrderMain extends Model
public function getStateTextAttribute() 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 '待自提';
} }
}
return OrderState::getMessage($this->attributes['state']); return OrderState::getMessage($this->attributes['state']);
} }

Loading…
Cancel
Save