get_lang('dict_shop_point_exchange_type.goods'), self::COUPON => get_lang('dict_shop_point_exchange_type.coupon'), self::BALANCE => get_lang('dict_shop_point_exchange_type.balance'), ]; if ($type == '') return $list; return $list[ $type ] ?? ''; } /** * 活动状态 */ public static function getStatus($status = '') { $list = [ self::UP => '已上架', self::DOWN => "已下架", ]; if ($status == '') return $list; return $list[ $status ] ?? ''; } /** * 活动类别 * @param $type * @return array|mixed|string */ public static function getClass($type = '') { $list = [ self::DISCOUNT => get_lang('dict_shop_active_class.exchange'), ]; if ($type == '') return $list; return $list[ $type ] ?? ''; } }