get_lang('dict_mall_active_status.not_active'), self::ACTIVE => get_lang('dict_mall_active_status.active'), self::END => get_lang('dict_mall_active_status.end'), self::CLOSE => get_lang('dict_mall_active_status.close'), ]; if ($status == '') return $list; return $list[$status] ?? ''; } /** * 活动类别 * @param $type * @return array|mixed|string */ public static function getClass($type = ''){ $list = [ self::DISCOUNT => get_lang('dict_mall_active_class.discount'), ]; if ($type == '') return $list; return $list[$type] ?? ''; } /** * 活动类型 * @param $type * @return array|mixed|string */ public static function getType($type = ''){ $list = [ self::MEMBER => get_lang('dict_mall_active_type.member'), self::GOODS => get_lang('dict_mall_active_type.goods'), self::SHOP => get_lang('dict_mall_active_type.shop'), ]; if ($type == '') return $list; return $list[$type] ?? ''; } /** * 活动商品类型 * @param $type * @return array|mixed|string */ public static function getGoodsType($type = ''){ $list = [ self::GOODS_SINGLE => get_lang('dict_mall_active_goods_type.single'), self::GOODS_INDEPENDENT => get_lang('dict_mall_active_goods_type.independent'), self::GOODS_SHOP => get_lang('dict_mall_active_goods_type.shop'), ]; if ($type == '') return $list; return $list[$type] ?? ''; } }