Commit 55d4b418 by xiawei

build.yml

parent 19a3627a
# build.yml
version: 0.1
config:
spa: false
ssr: true
folder: nuxt-dist
proxy: 127.0.0.1:3000
server: /web\.guangdianyun\.tv/
target:
project: Web
location: live
module.exports = {
DEF_DOMAIM: '',
X_CA_STAGE: '',
private: true,
sentryOptions: {}
......
import request from './request';
let api = {
getWelcomePage: '/welcome/Index/getWelcomePage', // 获取欢迎页配置
getChannelInfo: '/Program/Index/getChannelInfo', // 获取直播间配置
getChannelConfig: '/Program/Index/getChannelConfig', // 获取直播间配置
getMenuList: '/Program/Index/getMenuList', // 获取菜单配置
getAdvertList: '/Program/Index/getAdvertList', // 获取广告配置
getChatCount: '/Program/Live/getChatCount', // 获取聊天数
getWatchNum: '/Program/Index/getWatchNum', // 获取观看人数
getCaremaList: '/Program/Index/getCaremaListV2', // 获取全景直播配置
getWatchLoginInfo: '/Program/Index/getWatchLoginInfo', // 获取登录信息
getWechatInfo: '/Program/Index/getWechatInfo', // 获取关注配置
PostInfo: '/Program/Live/PostInfo', // 数据统计相关
getPlaylistList: '/Program/Index/getPlaylistList', // 获得播单
invitation: '/Program/Live/invitation', // 邀请统计
getInvitationList: '/Program/Live/invitationList', // 获取邀请榜
......@@ -137,6 +131,22 @@ const testApi = {
// checkWatchList: '', // 白名单
// getAddressForGet: '' // 防盗链接口
};
const privateApi = {
getChannelInfo: '/go/live/getinfo', // 获取直播间配置
getChannelConfig: '/node/index/channelConfig', // 获取直播间配置
getMenuList: '/node/live/menuList', // 获取菜单配置
getAdvertList: '/node/live/advertList', // 获取广告配置
getChatCount: '/php/program/chat/chatCount', // 获取聊天数
getWatchNum: '/node/live/watchNum', // 获取观看人数
getCaremaList: '/go/live/getcaremalist', // 获取全景直播配置
PostInfo: '/go/live/postinfo', // 数据统计相关
getChatList: '/php/program/chat/getChatList', // 获取聊天内容
getTopChatList: '/php/program/chat/getTopChatList', // 获取置顶聊天内容
sendChat: '/php/program/chat/sendChat', // 发送聊天
getpraisenum: '/php/program/praise/praiseNum', // 获取点赞数
sendPraise: '/php/program/praise/Praise', // 点赞
getAddressForGet: `https:${process.env.DEF_DOMAIM}/Program/Address/getLivePlayAddressForGet` // 防盗链接口
};
if (!process.env.private) {
if (!process.env.X_CA_STAGE) {
api = { ...api, ...prodApi };
......@@ -145,6 +155,8 @@ if (!process.env.private) {
} else if (process.env.X_CA_STAGE === 'TEST') {
api = { ...api, ...testApi };
}
} else {
api = { ...api, ...privateApi };
}
export const getWelcomePage = data => {
......
import request from './request';
let api = {
getChannelAdConfig: '/Program/Index/getChannelAdConfig'
};
let api = {};
const prodApi = {
getChannelAdConfig:
'https://1812501212048408.cn-hangzhou.fc.aliyuncs.com/2016-08-15/proxy/node-api.online/node-api/index/channelAdConfig'
......@@ -14,6 +12,9 @@ const testApi = {
getChannelAdConfig:
'https://1812501212048408.cn-hangzhou.fc.aliyuncs.com/2016-08-15/proxy/node-api/node-api-test/index/channelAdConfig'
};
const privateApi = {
getChannelAdConfig: '/node/index/channelAdConfig'
};
if (!process.env.private) {
if (!process.env.X_CA_STAGE) {
api = { ...api, ...prodApi };
......@@ -22,6 +23,8 @@ if (!process.env.private) {
} else if (process.env.X_CA_STAGE === 'TEST') {
api = { ...api, ...testApi };
}
} else {
api = { ...api, ...privateApi };
}
export const getChannelAdConfig = data => {
......
......@@ -6,10 +6,10 @@ const prodApi = {
questionnaireHas: 'https://activity.guangdianyun.tv/v1/activity/Questionnaire/hasMask'
};
const preApi = {
questionnaireHas: '/activity/Questionnaire/hasMask'
// questionnaireHas: ''
};
const testApi = {
questionnaireHas: '/activity/Questionnaire/hasMask'
// questionnaireHas: ''
};
if (!process.env.private) {
if (!process.env.X_CA_STAGE) {
......
......@@ -55,6 +55,13 @@ const testApi = {
// openAnswerRedpacket: '', // 打开竞答红包
// openBusinessRedpacket: '' // 打开商家红包
};
const privateApi = {
getSpecialRedList: '/php/program/redenvelope/getSpecialRedList', // 获取 分享,商家,竞答红包
robRedpacket: '/php/program/redpacket/robRedpacket', // 获取红包详情
openRedpacket: '/php/program/redpacket/openRedpacket', // 打开 普通,口令红包
redpacketDetail: '/php/program/redenvelope/redpacketDetail', // 获取手气信息
openBusinessRedpacket: '/php/program/redenvelope/openBusinessRedpacket' // 打开商家红包
};
if (!process.env.private) {
if (!process.env.X_CA_STAGE) {
api = { ...api, ...prodApi };
......@@ -63,6 +70,8 @@ if (!process.env.private) {
} else if (process.env.X_CA_STAGE === 'TEST') {
api = { ...api, ...testApi };
}
} else {
api = { ...api, ...privateApi };
}
export const getSpecialRedList = data => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment