Skip to content

Commit

Permalink
Merge branch 'kuaifan-pro' into pro
Browse files Browse the repository at this point in the history
  • Loading branch information
weifashi authored and kuaifan committed Jun 3, 2024
2 parents 990a40e + 5eb2124 commit b737b84
Show file tree
Hide file tree
Showing 130 changed files with 1,114 additions and 583 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

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

## [0.37.62]

### Bug Fixes

- 如果项目没有流程,无法选择移动后的状态,也没办法确定移动

### Performance

- 优化视频播放
- 新增通讯录菜单
- 优化快捷创建群组
- 优化回复消息自动@逻辑
- 甘特图兼容移动端

## [0.37.50]

### Bug Fixes
Expand Down
15 changes: 13 additions & 2 deletions app/Module/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -2218,7 +2218,7 @@ public static function upload($param)
$type = ['jpg', 'jpeg', 'webp', 'gif', 'png'];
break;
case 'video':
$type = ['rm', 'rmvb', 'wmv', 'avi', 'mpg', 'mpeg', 'mp4'];
$type = ['rm', 'rmvb', 'wmv', 'avi', 'mpg', 'mpeg', 'mp4', 'webm'];
break;
case 'audio':
$type = ['mp3', 'wma', 'wav', 'amr'];
Expand All @@ -2233,7 +2233,7 @@ public static function upload($param)
$type = ['zip'];
break;
case 'file':
$type = ['jpg', 'jpeg', 'webp', 'png', 'gif', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'esp', 'pdf', 'rar', 'zip', 'gz', 'ai', 'avi', 'bmp', 'cdr', 'eps', 'mov', 'mp3', 'mp4', 'pr', 'psd', 'svg', 'tif'];
$type = ['jpg', 'jpeg', 'webp', 'png', 'gif', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'esp', 'pdf', 'rar', 'zip', 'gz', 'ai', 'avi', 'bmp', 'cdr', 'eps', 'mov', 'mp3', 'mp4', 'webm', 'pr', 'psd', 'svg', 'tif'];
break;
case 'firmware':
$type = ['img', 'tar', 'bin'];
Expand Down Expand Up @@ -2320,6 +2320,17 @@ public static function upload($param)
}
}
//
if (in_array($extension, ['mp4', 'webm'])) {
// 视频尺寸
$thumbFile = $array['file'] . '_thumb.jpg';
shell_exec("ffmpeg -i {$array['file']} -ss 1 -vframes 1 {$thumbFile} 2>&1");
if (file_exists($thumbFile)) {
$paramet = getimagesize($thumbFile);
$array['width'] = $paramet[0];
$array['height'] = $paramet[1];
$array['thumb'] = $array['path'] . '_thumb.jpg';
}
}
if (in_array($extension, ['jpg', 'jpeg', 'webp', 'gif', 'png'])) {
//图片尺寸
$paramet = getimagesize($array['file']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use App\Models\ProjectLog;
use App\Models\ProjectTaskUser;
use App\Models\User;
use App\Models\UserTransfer;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
Expand Down Expand Up @@ -35,7 +36,9 @@ public function up()
UserTransfer::chunkById(100, function ($lists) {
/** @var UserTransfer $item */
foreach ($lists as $item) {
ProjectTaskUser::transfer($item->original_userid, $item->new_userid);
if (User::whereUserid($item->original_userid)->where("identity", "like", "%,disable,%")->exists()) {
ProjectTaskUser::transfer($item->original_userid, $item->new_userid);
}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
php:
container_name: "dootask-php-${APP_ID}"
image: "kuaifan/php:swoole-8.0.rc14"
image: "kuaifan/php:swoole-8.0.rc15"
shm_size: "2gb"
ulimits:
core:
Expand Down
4 changes: 3 additions & 1 deletion language/original-web.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,6 @@ MD 格式发送
汇报内容
记录不存在
上传本地图片
浏览已上传图片
加载失败
待审批
审批中
Expand Down Expand Up @@ -1606,3 +1605,6 @@ License Key
删除附件
我是智谱清言,是智谱 AI 公司于2023训练的语言模型。
我的任务是针对用户的问题和要求提供适当的答复和支持。
上传本地文件
智谱清言
已超期
44 changes: 33 additions & 11 deletions language/translate.json
Original file line number Diff line number Diff line change
Expand Up @@ -15619,17 +15619,6 @@
"fr": "Télécharger une image locale",
"id": "Upload gambar lokal"
},
{
"key": "浏览已上传图片",
"zh": "",
"zh-CHT": "瀏覽已上傳圖片",
"en": "View the uploaded images",
"ko": "업로드한 그림 찾아보기",
"ja": "アップロードされた画像を見ます",
"de": "Das foto ist hochgeladen",
"fr": "Voir les images téléchargées",
"id": "Mengunggah gambar"
},
{
"key": "终端SN与License不匹配",
"zh": "",
Expand Down Expand Up @@ -20667,5 +20656,38 @@
"de": "Ich sollte eine angemessene antwort und unterstützung auf die fragen und ersuchen der nutzer bereitstellen.",
"fr": "Ma mission est de fournir des réponses et un soutien appropriés aux questions et demandes des utilisateurs.",
"id": "Tugas saya adalah memberikan jawaban dan dukungan yang sesuai kepada pengguna dan meminta jawaban yang sesuai."
},
{
"key": "上传本地文件",
"zh": "",
"zh-CHT": "上傳本地文件",
"en": "Upload local files",
"ko": "로컬 파일 업로드",
"ja": "ローカルファイルをアップロードします",
"de": "Lokalen dateien hochladen",
"fr": "Téléchargez vos fichiers locaux",
"id": "Mengunggah berkas lokal."
},
{
"key": "智谱清言",
"zh": "",
"zh-CHT": "智譜清言",
"en": "Wisdom and clear speech",
"ko": "지보가 맑고 바른 말",
"ja": "智譜清言です",
"de": "Sein: intelligent",
"fr": "Zizu chuan claire parole",
"id": "Kyousuke kun"
},
{
"key": "已超期",
"zh": "",
"zh-CHT": "已超期",
"en": "Have expired",
"ko": "이미 기한을 넘겼다",
"ja": "期限を過ぎました",
"de": "Die frist wurde überschritten.",
"fr": "Dépassement du délai",
"id": "Lebih dari periode"
}
]
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "DooTask",
"version": "0.37.50",
"codeVerson": 133,
"version": "0.37.62",
"codeVerson": 134,
"description": "DooTask is task management system.",
"scripts": {
"start": "./cmd dev",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b737b84

Please sign in to comment.