This commit is contained in:
2025-10-29 15:32:26 +08:00
parent d90614805b
commit b7462657cd
78921 changed files with 2753938 additions and 71 deletions

View File

@@ -0,0 +1,43 @@
<?php
/**
*/
namespace app\dict\order;
use app\dict\pay\PayDict;
/**
* 订单项公共属性
*/
class OrderGoodsDict
{
const wait_delivery = 0;//待发货
const delivery = 1;//已发货
const delivery_finish = 2;
/**
* 作用于订单项上的配送状态
* @param $status
* @return string|string[]
*/
public static function getDeliveryStatus($status = ''){
$list = array(
self::wait_delivery => '待发货',
self::delivery => '已发货',
self::delivery_finish => '已收货'
);
if($status !== '') return $list[$status] ?? '';
return $list;
}
}