其余文件
This commit is contained in:
25
app/common/enum/DistributionOrderGoodsEnum.php
Normal file
25
app/common/enum/DistributionOrderGoodsEnum.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?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] ?? '未知';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user