|
@@ -47,7 +47,7 @@ class Order extends Base
|
|
// $order->append(['status_text']);
|
|
// $order->append(['status_text']);
|
|
// $order->hidden(explode(',', 'method,transactionid,updatetime,deletetime'));
|
|
// $order->hidden(explode(',', 'method,transactionid,updatetime,deletetime'));
|
|
// $order->expiretime = $order->expiretime - time();
|
|
// $order->expiretime = $order->expiretime - time();
|
|
- $order->order_status_text = OrderEnum::SHOW_INSPECTION_STATUS_TEXT_MAP[$order->order_status];
|
|
|
|
|
|
+ $order->order_status_text = OrderEnum::STATUS_TEXT_MAP[$order->order_status];
|
|
$this->success('', $order);
|
|
$this->success('', $order);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -78,7 +78,7 @@ class Order extends Base
|
|
// $item->append(['order_status_text']);
|
|
// $item->append(['order_status_text']);
|
|
$field = 'id,order_sn,amount,goods_price,order_amount,express_name,express_no,order_goods,order_status_text,order_status';
|
|
$field = 'id,order_sn,amount,goods_price,order_amount,express_name,express_no,order_goods,order_status_text,order_status';
|
|
$item->visible(explode(',', $field));
|
|
$item->visible(explode(',', $field));
|
|
- $item->order_status_text = OrderEnum::SHOW_INSPECTION_STATUS_TEXT_MAP[$item->order_status];
|
|
|
|
|
|
+ $item->order_status_text = OrderEnum::STATUS_TEXT_MAP[$item->order_status];
|
|
}
|
|
}
|
|
$this->success('获取成功', $list);
|
|
$this->success('获取成功', $list);
|
|
}
|
|
}
|