WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit df8fdd5

Browse files
committed
build
1 parent 698d03f commit df8fdd5

File tree

82 files changed

+574
-553
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+574
-553
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.39.37]
6+
7+
### Bug Fixes
8+
9+
- 设置子任务时间主任务出现1970的情况
10+
- 消息溢出的情况
11+
12+
### Features
13+
14+
- 消息翻译支持切换语言
15+
16+
### Performance
17+
18+
- 优化国际化语言
19+
- 审批支持点击头像进入私聊
20+
- 优化删除临时文件
21+
- 优化缩略图
22+
523
## [0.39.21]
624

725
### Bug Fixes

app/Module/Base.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,10 +2381,11 @@ public static function upload($param)
23812381
// 转换视频格式
23822382
$output = Base::rightReplace($array['file'], ".{$array['ext']}", '.mp4');
23832383
if ($array['ext'] === 'webm') {
2384-
shell_exec("ffmpeg -y -i {$array['file']} -strict experimental {$output} 2>&1");
2384+
$command = sprintf("ffmpeg -y -i %s -strict experimental %s 2>&1", escapeshellarg($array['file']), escapeshellarg($output));
23852385
} else {
2386-
shell_exec("ffmpeg -y -i {$array['file']} -c:v copy -c:a copy {$output} 2>&1");
2386+
$command = sprintf("ffmpeg -y -i %s -c:v copy -c:a copy %s 2>&1", escapeshellarg($array['file']), escapeshellarg($output));
23872387
}
2388+
@shell_exec($command);
23882389
if (file_exists($output) && filesize($output) > 0) {
23892390
@unlink($array['file']);
23902391
$array = array_merge($array, [
@@ -2400,12 +2401,14 @@ public static function upload($param)
24002401
if (in_array($array['ext'], ['mov', 'webm', 'mp4'])) {
24012402
// 视频尺寸
24022403
$thumbFile = $array['file'] . '_thumb.jpg';
2403-
shell_exec("ffmpeg -y -i {$array['file']} -ss 1 -vframes 1 {$thumbFile} 2>&1");
2404+
$command = sprintf("ffmpeg -y -i %s -ss 1 -vframes 1 %s 2>&1", escapeshellarg($array['file']), escapeshellarg($thumbFile));
2405+
@shell_exec($command);
24042406
if (file_exists($thumbFile) && filesize($thumbFile) > 0) {
24052407
$paramet = getimagesize($thumbFile);
24062408
$array['width'] = $paramet[0];
24072409
$array['height'] = $paramet[1];
24082410
$array['thumb'] = $array['path'] . '_thumb.jpg';
2411+
Image::compressImage($thumbFile, null, 80);
24092412
}
24102413
}
24112414
if (in_array($array['ext'], ['jpg', 'jpeg', 'webp', 'gif', 'png'])) {

app/Tasks/DeleteTmpTask.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public function start()
109109
}
110110
$files = Base::recursiveFiles(public_path('uploads/tmp'));
111111
foreach ($files as $file) {
112-
$time = filemtime($file);
113-
if ($time < time() - 3600 * 24 * $day) {
112+
$time = @filemtime($file);
113+
if ($time && $time < time() - 3600 * 24 * $day) {
114114
unlink($file);
115115
}
116116
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "DooTask",
3-
"version": "0.39.21",
4-
"codeVerson": 147,
3+
"version": "0.39.37",
4+
"codeVerson": 148,
55
"description": "DooTask is task management system.",
66
"scripts": {
77
"start": "./cmd dev",
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/build/DialogWrapper.86de099a.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

public/js/build/DialogWrapper.df01caa2.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)