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

const { activityDomain } = CONFIG
const flag = process.env.X_CA_STAGE

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