This commit is contained in:
2023-08-08 17:15:43 +08:00
parent 697631c8d3
commit ac250ea779
13 changed files with 303 additions and 61 deletions

View File

@@ -235,7 +235,7 @@ public class FlowerApiController : BaseController
f.Photos = database.Photos.Where(p => p.FlowerId == f.Id && p.RecordId == null).ToList();
foreach (var photo in f.Photos)
{
photo.Url = $"photo/flower/{f.Id}/{photo.Path}";
photo.Url = $"photo/flower/{f.Id}/{photo.Path}?thumb=1";
}
}
}
@@ -532,7 +532,7 @@ public class FlowerApiController : BaseController
};
AddPhotoItem(cover);
await WriteToFile(item.Id, file, token);
await WriteToFile(item.Id, file, token: token);
});
}
catch (Exception ex)
@@ -753,7 +753,7 @@ public class FlowerApiController : BaseController
};
AddPhotoItem(cover);
await WriteToFile(update.Id, file, token);
await WriteToFile(update.Id, file, token: token);
});
}
catch (Exception ex)
@@ -854,7 +854,7 @@ public class FlowerApiController : BaseController
};
AddPhotoItem(cover);
await WriteToFile(param.Id, file, token);
await WriteToFile(param.Id, file, token: token);
});
}
catch (Exception ex)