'订单支付', self::MERCHANT_ORDER_PAY => '商户订单支付', self::PLATFORM_ORDER_PAY => '平台订单支付', self::MERCHANT_ORDER_OBTAINS => '商户', self::ORDER_HANDLING_FEES => '手续费', self::PLATFORM_ORDER_OBTAINS => '平台', self::SUPPLIER_ORDER_OBTAINS => '成本', self::SYSTEM_SET => '平台设置', self::VILLAGE_ORDER_OBTAINS => '村长', self::BRIGADE_ORDER_OBTAINS=>'队长', self::ORDER_MARGIN=>'保证金', self::VIP_ORDER_OBTAINS=>'会员', self::OTHER_ORDER_OBTAINS=>'其他', self::USER_ORDER_REFUND=>'订单返还' ]; if ($value === true) { return $data; } return $data[$value] ?? ''; } /** * @notes 获取订单状态类型 */ public static function getOrderType($value = true) { $data = [ self::RECEIVED_GOODS => '已完成', self::WAIT_EVALUATION => '待评价', self::WAIT_DELIVERY => '待发货', self::WAIT_RECEIVING => '待核销', self::RETURN_SUCCESS => '退货成功', self::ALREADY_REFUND => '已退款', self::RECEIVED_BACK => '已退款', ]; if ($value === true) { return $data; } return $data[$value] ?? ''; } /** * @notes 获取订单状态类型 */ public static function refundStatus($value = true) { $data = [ self::REFUND_STATUS_NO => '未退款', self::REFUND_STATUS_YES => '退款中', self::REFUND_STATUS_FINISH => '已退款', ]; if ($value === true) { return $data; } return $data[$value] ?? ''; } /** * @notes 获取订单状态类型 */ public static function refundType($value = true) { $data = [ 1 => '仅退款', 2 => '退款退货', 3 => '拒绝退款', 4 => '商品待退货', 5 => '退货待收货', 6 => '已退款', ]; if ($value === true) { return $data; } return $data[$value] ?? ''; } }