mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🎈pref:代码优化
This commit is contained in:
parent
f85b65e440
commit
6a463afded
@ -444,7 +444,7 @@ export class tools extends plugin {
|
|||||||
const dyCover = cover.url_list?.pop();
|
const dyCover = cover.url_list?.pop();
|
||||||
// logger.info(cover.url_list);
|
// logger.info(cover.url_list);
|
||||||
dySendContent += `\n
|
dySendContent += `\n
|
||||||
${ DIVIDING_LINE.replace('{}', '限制说明') }\n当前视频时长约:${ Number.isInteger(dyDuration / 60) ? Math.trunc(dyDuration / 60) : (dyDuration / 60).toFixed(2) }分钟,\n大于管理员设置的最大时长 ${ Number.isInteger(durationThreshold / 60) ? Math.trunc(durationThreshold / 60) : (durationThreshold / 60).toFixed(2) } 分钟!`;
|
${ DIVIDING_LINE.replace('{}', '限制说明') }\n当前视频时长约:${(dyDuration / 60).toFixed(2).replace(/\.00$/, '')} 分钟,\n大于管理员设置的最大时长 ${(durationThreshold / 60).toFixed(2).replace(/\.00$/, '')} 分钟!`;
|
||||||
e.reply([segment.image(dyCover), dySendContent]);
|
e.reply([segment.image(dyCover), dySendContent]);
|
||||||
// 如果开启评论的就调用
|
// 如果开启评论的就调用
|
||||||
await this.douyinComment(e, douId, headers);
|
await this.douyinComment(e, douId, headers);
|
||||||
@ -814,7 +814,7 @@ export class tools extends plugin {
|
|||||||
// 限制视频解析
|
// 限制视频解析
|
||||||
if (isLimitDuration) {
|
if (isLimitDuration) {
|
||||||
const durationInMinutes = (curDuration / 60).toFixed(0);
|
const durationInMinutes = (curDuration / 60).toFixed(0);
|
||||||
biliInfo.push(`${ DIVIDING_LINE.replace('{}', '限制说明') }\n当前视频时长约:${ durationInMinutes }分钟,\n大于管理员设置的最大时长 ${ Number.isInteger(this.biliDuration / 60) ? Math.trunc(this.biliDuration / 60) : (this.biliDuration / 60).toFixed(2) } 分钟!`);
|
biliInfo.push(`${ DIVIDING_LINE.replace('{}', '限制说明') }\n当前视频时长约:${ durationInMinutes }分钟,\n大于管理员设置的最大时长 ${(this.biliDuration / 60).toFixed(2).replace(/\.00$/, '')} 分钟!`);
|
||||||
e.reply(biliInfo);
|
e.reply(biliInfo);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user