feat(OrderEnum): 添加退货状态查询功能
This commit is contained in:
parent
ce0fa6c394
commit
50dd13542e
@ -180,6 +180,10 @@ class OrderEnum
|
||||
*/
|
||||
public static function getOrderType($value = true)
|
||||
{
|
||||
if($value==-1){
|
||||
$status = self::refundStatus($value) ?? '';
|
||||
return $status;
|
||||
}
|
||||
$data = [
|
||||
self::RECEIVED_GOODS => '已完成',
|
||||
self::WAIT_EVALUATION => '待评价',
|
||||
|
@ -40,12 +40,8 @@ class StoreOrder extends BaseModel
|
||||
|
||||
public function getStatusNameTextAttr($value, $data)
|
||||
{
|
||||
if($data['status']==-1){
|
||||
$status = OrderEnum::refundStatus($data['refund_status']) ?? '';
|
||||
}else{
|
||||
$status = OrderEnum::getOrderType($data['status']) ?? '';
|
||||
|
||||
}
|
||||
$status = OrderEnum::getOrderType($data['status']) ?? '';
|
||||
return $status;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user