12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\common\enum;
-
-
- class IntegralGoodsEnum
- {
-
- const TYPE_GOODS = 1;
- const TYPE_BALANCE = 2;
-
-
- const STATUS_SOLD_OUT = 0;
- const STATUS_SHELVES = 1;
-
-
- const DEL_NORMAL = 0;
- const DEL_TRUE = 1;
-
-
-
- const EXCHANGE_WAY_INTEGRAL = 1;
- const EXCHANGE_WAY_HYBRID = 2;
-
-
-
- const DELIVERY_NO_EXPRESS = 0;
- const DELIVERY_EXPRESS = 1;
-
-
- const EXPRESS_TYPE_FREE = 1;
- const EXPRESS_TYPE_UNIFIED = 2;
-
-
-
- public static function getTypeDesc($type = true)
- {
- $desc = [
- self::TYPE_GOODS => '商品',
- self::TYPE_BALANCE => '红包',
- ];
- if ($type === true) {
- return $desc;
- }
- return $desc[$type] ?? '';
- }
- }
|