no message

This commit is contained in:
kuaifan
2024-11-10 23:09:07 +08:00
parent e2cec420fa
commit 047771e6f8
8 changed files with 13 additions and 5 deletions
+4
View File
@@ -1016,6 +1016,10 @@ class WebSocketDialogMsg extends AbstractModel
throw new ApiException('保存地图快照失败');
}
$imageSize = getimagesize($filePath);
if ($imageSize[0] < 20 || $imageSize[1] < 20) {
throw new ApiException('地图快照尺寸太小');
}
$msg['thumb_original'] = $msg['thumb'];
$msg['thumb'] = $fileUrl;
$msg['width'] = $imageSize[0];
$msg['height'] = $imageSize[1];