forked from SoDOff-Project/sodoff
fix random freezes
This commit is contained in:
parent
9cef74dd26
commit
535cfc418c
@ -662,7 +662,7 @@ public class ContentController : Controller {
|
||||
return null;
|
||||
}
|
||||
|
||||
string imageUrl = string.Format("{0}://{1}/RawImage/{2}/{3}/{4}", HttpContext.Request.Scheme, HttpContext.Request.Host, viking.Id, ImageType, ImageSlot);
|
||||
string imageUrl = string.Format("{0}://{1}/RawImage/{2}/{3}/{4}.jpg", HttpContext.Request.Scheme, HttpContext.Request.Host, viking.Id, ImageType, ImageSlot);
|
||||
|
||||
return new ImageData {
|
||||
ImageURL = imageUrl,
|
||||
|
@ -20,7 +20,7 @@ public class ImageController : Controller {
|
||||
// SetImage and GetImage are defined in ContentController
|
||||
|
||||
[HttpGet]
|
||||
[Route("RawImage/{VikingId}/{ImageType}/{ImageSlot}")]
|
||||
[Route("RawImage/{VikingId}/{ImageType}/{ImageSlot}.jpg")]
|
||||
public IActionResult RawImage(String VikingId, String ImageType, int ImageSlot) {
|
||||
Image? image = ctx.Images.FirstOrDefault(e => e.VikingId == VikingId && e.ImageType == ImageType && e.ImageSlot == ImageSlot);
|
||||
if (image is null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user