Skip to content

Commit

Permalink
优化提示
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenxuan committed Oct 3, 2024
1 parent 61145d7 commit 81eb6c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,5 @@ export default [{
"no-trailing-spaces": 1,
// 要求对象字面量大括号内两侧必须有空格,设置为错误等级1。
"object-curly-spacing": [1, 'always'],
// 要求数组字面量中括号内两侧必须有空格,设置为错误等级1。
"array-bracket-spacing": [1, 'always']
}
}]
8 changes: 4 additions & 4 deletions module/business/douyin/douyin.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default class DouYin extends Base {
)
}

const tip = [ '视频正在上传' ]
const tip = ['视频正在上传']
let res
if (this.is_mp4) {
res = full_data
Expand All @@ -275,7 +275,7 @@ export default class DouYin extends Base {
} else {
dec = '抖音视频作品数据'
}
!sendvideofile && await this.e.reply('视频太大了,还是去抖音看吧~', true)
!sendvideofile && await this.e.reply(`设定的最大上传大小为 ${Config.app.filelimit}MB\n当前解析到的视频大小为 ${Number(mp4size)}MB\n` + '视频太大了,还是去抖音看吧~', true)
/** 发送套娃转发消息 */
Config.app.sendforwardmsg && await this.e.reply(await makeForwardMsg(this.e, res, dec))
/** 发送视频 */
Expand Down Expand Up @@ -393,7 +393,7 @@ export default class DouYin extends Base {
`作曲: ${data.music_info.original_musician_display_name || data.music_info.owner_nickname}\n`,
`music_id: ${data.music_info.id}`
],
[ { text: '音乐文件', link: data.music_info.play_url.uri } ]
[{ text: '音乐文件', link: data.music_info.play_url.uri }]
)
)

Expand All @@ -411,7 +411,7 @@ export default class DouYin extends Base {
const img = await Render.render(
'html/douyin/douyinlive',
{
image_url: [ { image_src: live_data.data.data[0].cover.url_list[0] } ],
image_url: [{ image_src: live_data.data.data[0].cover.url_list[0] }],
text: live_data.data.data[0].title,
liveinf: `${live_data.data.partition_road_map.partition.title} | 房间号: ${room_data.owner.web_rid}`,
在线观众: this.count(live_data.data.data[0].stats.user_count_str),
Expand Down

0 comments on commit 81eb6c0

Please sign in to comment.