From 8e06f15a3a4d46cda2c373d292a213ae6533c111 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Mon, 26 Oct 2020 10:48:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E8=87=AA=E6=8F=90=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Model/v3/OrderMain.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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']);