mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00
fix random freezes
This commit is contained in:
parent
9cef74dd26
commit
535cfc418c
@ -662,7 +662,7 @@ public class ContentController : Controller {
|
|||||||
return null;
|
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 {
|
return new ImageData {
|
||||||
ImageURL = imageUrl,
|
ImageURL = imageUrl,
|
||||||
|
@ -20,7 +20,7 @@ public class ImageController : Controller {
|
|||||||
// SetImage and GetImage are defined in ContentController
|
// SetImage and GetImage are defined in ContentController
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route("RawImage/{VikingId}/{ImageType}/{ImageSlot}")]
|
[Route("RawImage/{VikingId}/{ImageType}/{ImageSlot}.jpg")]
|
||||||
public IActionResult RawImage(String VikingId, String ImageType, int ImageSlot) {
|
public IActionResult RawImage(String VikingId, String ImageType, int ImageSlot) {
|
||||||
Image? image = ctx.Images.FirstOrDefault(e => e.VikingId == VikingId && e.ImageType == ImageType && e.ImageSlot == ImageSlot);
|
Image? image = ctx.Images.FirstOrDefault(e => e.VikingId == VikingId && e.ImageType == ImageType && e.ImageSlot == ImageSlot);
|
||||||
if (image is null) {
|
if (image is null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user