/* eslint-disable no-confusing-arrow */
import { get } from '@/api/request'
import CONFIG from '@/config'

const { env, activityDomain } = CONFIG
const flag = env || CONFIG.private

// 获取留言抽奖中奖名单
export const getWinnersList = data =>
  flag
    ? get('/activity/DrawResult/getWinnerRecord', { data })
    : get('/activity/DrawResult/getWinnerRecord', { data, baseURL: activityDomain })
