Skip to content

Commit

Permalink
perf: 调整了直播文件的输出名称
Browse files Browse the repository at this point in the history
  • Loading branch information
duan602728596 committed Apr 22, 2019
1 parent 49c95be commit 32d5f58
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
15 changes: 8 additions & 7 deletions app/src/modules/LiveCatch/Index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ class Index extends Component {

// 录制视频
async handleRecordingClick(item, event) {
const title = '【口袋48直播】_' + item.liveId + '_' + item.title
+ '_starttime_' + time('YY-MM-DD-hh-mm-ss', Number(item.ctime))
+ '_recordtime_' + time('YY-MM-DD-hh-mm-ss');
const isZhibo = item.liveType === 1;
const title = `【口袋48${ isZhibo ? '直播' : '电台' }】_${ item.userInfo.nickname }`
+ `_直播时间_${ time('YY-MM-DD-hh-mm-ss', Number(item.ctime)) }`
+ `_录制时间_${ time('YY-MM-DD-hh-mm-ss') }_${ item.liveId }`;
const liveInfo = await getLiveInfo(item.liveId);

if (liveInfo.status === 200) {
Expand Down Expand Up @@ -259,10 +260,10 @@ class Index extends Component {
* 使用Promise进行了包装
*/
async recordingPromise(item) {
const title = '【口袋48直播】' + '_' + item.userInfo.nickname
+ '_直播时间_' + time('YY-MM-DD-hh-mm-ss', Number(item.ctime))
+ '_录制时间_' + time('YY-MM-DD-hh-mm-ss')
+ '_' + item.liveId;
const isZhibo = item.liveType === 1;
const title = `【口袋48${ isZhibo ? '直播' : '电台' }】_${ item.userInfo.nickname }`
+ `_直播时间_${ time('YY-MM-DD-hh-mm-ss', Number(item.ctime)) }`
+ `_录制时间_${ time('YY-MM-DD-hh-mm-ss') }_${ item.liveId }`;
const liveInfo = await getLiveInfo(item.liveId);

if (liveInfo.status === 200) {
Expand Down
8 changes: 4 additions & 4 deletions app/src/modules/PlayBackDownload/Index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ class Index extends Component {
// 下载
async handleDownloadClick(item, event) {
try {
const title = '【口袋48录播】' + '_' + item.userInfo.nickname
+ '_直播时间_' + time('YY-MM-DD-hh-mm-ss', Number(item.ctime))
+ '_下载时间_' + time('YY-MM-DD-hh-mm-ss')
+ '_' + item.liveId;
const isZhibo = item.liveType === 1;
const title = `【口袋48${ isZhibo ? '直播' : '电台' }】_${ item.userInfo.nickname }`
+ `_直播时间_${ time('YY-MM-DD-hh-mm-ss', Number(item.ctime)) }`
+ `_录制时间_${ time('YY-MM-DD-hh-mm-ss') }_${ item.liveId }`;
const liveInfo = await getLiveInfo(item.liveId);

if (liveInfo.status === 200) {
Expand Down

0 comments on commit 32d5f58

Please sign in to comment.