'精确的', self::SALES_SHOW_TYPE_SKETCHY => '粗略的', ]; } public static function getSalesShowTypeText($salesShowType) { return self::getSalesShowTypeMap()[$salesShowType] ?? '未知'; } public static function getStockShowTypeMap() { return [ self::STOCK_SHOW_TYPE_EXACT => '精确的', self::STOCK_SHOW_TYPE_SKETCHY => '粗略的', ]; } public static function getStockShowTypeText($stockShowType) { return self::getStockShowTypeMap()[$stockShowType] ?? '未知'; } public static function getGoodsTypeMap() { return [ self::TYPE_REAL => '普通商品', // self::TYPE_CARD => '卡密/网盘', // self::TYPE_VIRTUAL => '虚拟商品', // self::TYPE_CARD_NEXT => '次卡商品', ]; } public static function getGoodsTypeText($type) { return self::getGoodsTypeMap()[$type] ?? '未知'; } public static function getGoodsTypeList() { return [ self::TYPE_REAL, // self::TYPE_CARD, // self::TYPE_VIRTUAL, // self::TYPE_CARD_NEXT, ]; } public static function getGoodsStatusMap() { return [ self::STATUS_IN_STORAGE => '仓库中(未上架)', self::STATUS_ON_SALE => '销售中(已上架)', self::STATUS_SOLD_OUT => '已售罄', self::STATUS_OFF_SALE => '已下架', ]; } public static function getGoodsStatusText($status) { return self::getGoodsStatusMap()[$status] ?? '未知'; } public static function getSpecTypeMap() { return [ self::SPEC_TYPE_SINGLE => '单规格', self::SPEC_TYPE_MULTI => '多规格', ]; } public static function getSpecTypeText($specType) { return self::getSpecTypeMap()[$specType] ?? '未知'; } public static function getDeliveryTypeMap() { return [ self::DELIVERY_TYPE_EXPRESS => '物流配送', // self::DELIVERY_TYPE_CITY => '同城配送', // self::DELIVERY_TYPE_SELF => '门店自提', ]; } public static function getDeliveryTypeList() { return [ self::DELIVERY_TYPE_EXPRESS, // self::DELIVERY_TYPE_CITY, // self::DELIVERY_TYPE_SELF, ]; } public static function getDeliveryTypeText($deliveryType) { return self::getDeliveryTypeMap()[$deliveryType] ?? '未知'; } public static function getExpressTypeMap() { return [ self::EXPRESS_TYPE_FREE => '包邮', // self::EXPRESS_TYPE_UNIFIED => '统一运费', // self::EXPRESS_TYPE_TEMPLATE => '运费模板', ]; } public static function getExpressTypeText($expressType) { return self::getExpressTypeMap()[$expressType] ?? '未知'; } public static function getOnlineTypeMap() { return [ self::ONLINE_TYPE_IMMEDIATE => '立即上架', self::ONLINE_TYPE_NOT_NOW => '暂不上架', self::ONLINE_TYPE_SCHEDULED => '定时上架', ]; } public static function getOnlineTypeText($onlineType) { return self::getOnlineTypeMap()[$onlineType] ?? '未知'; } public static function getOfflineTypeMap() { return [ self::OFFLINE_TYPE_NONE => '不自动下架', self::OFFLINE_TYPE_AUTO => '自动下架', ]; } public static function getOfflineTypeText($offlineType) { return self::getOfflineTypeMap()[$offlineType] ?? '未知'; } public static function getSaleStatusMap() { return [ self::SALE_STATUS_NONE => '无', self::SALE_STATUS_APPLIED => '已申请', self::SALE_STATUS_REFUNDING => '退款中', self::SALE_STATUS_RETURNING => '退货中', self::SALE_STATUS_REFUNDED => '已退款', self::SALE_STATUS_RETURNED => '已退货退款', self::SALE_STATUS_REJECTED => '已拒绝', ]; } public static function getSaleStatusText($saleStatus) { return self::getSaleStatusMap()[$saleStatus] ?? '未知'; } }