Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Mar 26, 2024
1 parent eb066f5 commit ea40e95
Show file tree
Hide file tree
Showing 84 changed files with 370 additions and 332 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

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

## [0.36.36]

### Bug Fixes

- 修改回复、转发消息后引用的部分消失

### Performance

- 优化任务日志内容
- 查看版本免请求接口
- 添加任务时选择任务位置内容溢出
- 消息支持style
- 回复消息列表隐藏顶部loading
- 支持FCM推送
- 设置华为推送自分类
- 优化添加任务可见性点击效果

## [0.36.26]

### Bug Fixes
Expand Down
20 changes: 14 additions & 6 deletions app/Models/WebSocketDialogMsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -877,14 +877,22 @@ public static function sendMsg($action, $dialog_id, $type, $msg, $sender = null,
if (empty($dialogMsg)) {
throw new ApiException('消息不存在');
}
if ($dialogMsg->type !== 'text' && $dialogMsg->type !== 'vote') {
throw new ApiException('此消息不支持此操作');
}
if ($dialogMsg->userid != $sender && $dialogMsg->type !== 'vote') {
throw new ApiException('仅支持修改自己的消息');
$oldMsg = Base::json2array($dialogMsg->getRawOriginal('msg'));
if ($dialogMsg->type === 'vote') {
if ($dialogMsg->userid != $sender) {
$msg = [
'votes' => $msg['votes'],
];
}
} else {
if ($dialogMsg->type !== 'text') {
throw new ApiException('此消息不支持此操作');
}
if ($dialogMsg->userid != $sender) {
throw new ApiException('仅支持修改自己的消息');
}
}
//
$oldMsg = Base::json2array($dialogMsg->getRawOriginal('msg'));
$updateData = [
'mtype' => $mtype,
'link' => $link,
Expand Down
2 changes: 2 additions & 0 deletions language/original-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,5 @@ Api接口文档
点击下载

置顶会话无法隐藏

注册失败
11 changes: 11 additions & 0 deletions language/translate.json
Original file line number Diff line number Diff line change
Expand Up @@ -20073,5 +20073,16 @@
"de": "Sagen sie das ab.",
"fr": "Annuler l’envoi a échoué",
"id": "Batal kirim"
},
{
"key": "注册失败",
"zh": "",
"zh-CHT": "註冊失敗",
"en": "Registration failure",
"ko": "등록 실패",
"ja": "登録に失敗しました",
"de": "Antrag abgelehnt.",
"fr": "L’inscription a échoué",
"id": "Gagal mendaftar"
}
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "DooTask",
"version": "0.36.26",
"version": "0.36.36",
"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.

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

Loading

0 comments on commit ea40e95

Please sign in to comment.