29 lines
768 B
PHP
29 lines
768 B
PHP
<?php
|
|
|
|
namespace App\Support;
|
|
|
|
/** 工作平台退货取件的订单状态码与中文标签(与工作平台页面一致)。 */
|
|
final class ReturnPickupOrderStatus
|
|
{
|
|
public const LABELS = [
|
|
'WaitExpOrder' => '待快递下单',
|
|
'WaitExpAccept' => '待快递接单',
|
|
'ExpAccepted' => '快递已接单',
|
|
'ExpCanceled' => '快递已取消订单',
|
|
'CustomerServiceConfirmed' => '客服已确认',
|
|
'WaitServerComfrim' => '待客服确认',
|
|
'TicketTimeoutClose' => '工单超时关闭',
|
|
];
|
|
|
|
public static function label(?string $code): string
|
|
{
|
|
$code = trim((string) $code);
|
|
|
|
if ($code === '') {
|
|
return '';
|
|
}
|
|
|
|
return self::LABELS[$code] ?? $code;
|
|
}
|
|
}
|