...
|
...
|
@@ -4,6 +4,7 @@ const service = global.yoho.ServiceAPI; |
|
|
const liveAPI = global.yoho.LiveAPI;
|
|
|
const contentCodeConfig = require('../../../config/content-code');
|
|
|
const resourcesProcess = require(`${global.utils}/resources-process`);
|
|
|
const helpers = global.yoho.helpers;
|
|
|
|
|
|
const _formatTime = (timestamp, b) => {
|
|
|
let date = b ? 'M.D ' : 'M月D日';
|
...
|
...
|
@@ -111,8 +112,13 @@ const fetchReplayInfo = (videoID) => { |
|
|
return liveAPI.get(url, data, options)
|
|
|
.then(result => {
|
|
|
if (result.data) {
|
|
|
result.data.living = 3; // 自定义的重播 状态
|
|
|
result.data.humanTime = _formatTime(result.data.living_start_time * 1000);
|
|
|
let d = result.data;
|
|
|
|
|
|
d.logo = helpers.image(d.logo, 70, 70);
|
|
|
d.pic = helpers.image(d.pic, 640, 968);
|
|
|
d.master_pic = helpers.image(d.master_pic, 180, 180);
|
|
|
d.living = 3; // 自定义的重播 状态
|
|
|
d.humanTime = _formatTime(data.living_start_time * 1000);
|
|
|
}
|
|
|
|
|
|
return result;
|
...
|
...
|
@@ -127,7 +133,12 @@ const fetchLiveInfo = (roomID) => { |
|
|
return liveAPI.get(url, data)
|
|
|
.then(result => {
|
|
|
if (result.data) {
|
|
|
result.data.humanTime = _formatTime(result.data.living_start_time * 1000);
|
|
|
let d = result.data;
|
|
|
|
|
|
d.logo = helpers.image(d.logo, 70, 70);
|
|
|
d.pic = helpers.image(d.pic, 640, 968);
|
|
|
d.master_pic = helpers.image(d.master_pic, 180, 180);
|
|
|
d.humanTime = _formatTime(d.living_start_time * 1000);
|
|
|
}
|
|
|
|
|
|
return result;
|
...
|
...
|
|