feat: 新增临时帐号功能

This commit is contained in:
kuaifan
2023-02-19 23:20:19 +08:00
parent 7c4c03bbd4
commit 5f0b858baf
9 changed files with 145 additions and 44 deletions

View File

@@ -677,7 +677,7 @@ class WebSocketDialogMsg extends AbstractModel
$keyId = $matchId[1];
if ($matchChar[1] === "~") {
if (Base::isNumber($keyId)) {
$file = File::permissionFind($keyId);
$file = File::permissionFind($keyId, User::auth());
if ($file->type == 'folder') {
throw new ApiException('文件夹不支持分享');
}