Skip to content

Commit

Permalink
🐛 Fix: fix analytics value
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed Apr 5, 2021
1 parent f536391 commit 06d40ef
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/apis/app/uploader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ const handleBaiduTongJi = (webContents: WebContents, options: IAnalyticsData) =>
const data: IBaiduTongJiOptions = {
category: 'upload',
action: options.fromClipboard ? 'clipboard' : 'files', // 上传剪贴板图片还是选择的文件
opt_label: JSON.stringify({
type: options.type, // 上传的图床种类
count: options.count, // 上传的图片数量
timestamp: dayjs().format('YYYYMMDDHHmmss'), // 上传完成的时间戳
duration: options.duration // 耗时
})
opt_label: options.type,
opt_value: options.duration
}
webContents.send(BAIDU_TONGJI_EVENT, data)
}
Expand Down

0 comments on commit 06d40ef

Please sign in to comment.