Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
broadcast_cloud
/
web-live
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
2
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
55d4b418
authored
Sep 11, 2020
by
xiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build.yml
parent
19a3627a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
11 deletions
+49
-11
build.yml
+13
-0
config/private.js
+1
-0
plugins/API/apiAll.js
+18
-6
plugins/API/apiExtend.js
+6
-3
plugins/API/apiQuestionnaire.js
+2
-2
plugins/API/apiRed.js
+9
-0
No files found.
build.yml
0 → 100644
View file @
55d4b418
# 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
config/private.js
View file @
55d4b418
module
.
exports
=
{
DEF_DOMAIM
:
''
,
X_CA_STAGE
:
''
,
private
:
true
,
sentryOptions
:
{}
...
...
plugins/API/apiAll.js
View file @
55d4b418
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
=>
{
...
...
plugins/API/apiExtend.js
View file @
55d4b418
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
=>
{
...
...
plugins/API/apiQuestionnaire.js
View file @
55d4b418
...
...
@@ -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
)
{
...
...
plugins/API/apiRed.js
View file @
55d4b418
...
...
@@ -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
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment