Files
chazhi_shop_backend/app/common/enum/DistributionOrderGoodsEnum.php
2026-04-14 17:46:22 +08:00

26 lines
627 B
PHP

<?php
namespace app\common\enum;
class DistributionOrderGoodsEnum
{
//分销订单状态
const STATUS_WAIT_HANDLE = 1;//待返佣
const STATUS_SUCCESS = 2;//已结算
const STATUS_ERROR = 3;//已失效
//分销订单状态
public static function getOrderStatus($status = true)
{
$desc = [
self::STATUS_WAIT_HANDLE => '待返佣',
self::STATUS_SUCCESS => '已结算',
self::STATUS_ERROR => '已失效',
];
if ($status === true) {
return $desc;
}
return $desc[$status] ?? '未知';
}
}