mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00
fix error in ProcessRewardedItems on empty request
This commit is contained in:
parent
c6290b3ba7
commit
d122786778
@ -1005,6 +1005,9 @@ public class ContentController : Controller {
|
||||
public IActionResult ProcessRewardedItems(Viking viking, [FromForm] string request) {
|
||||
ProcessRewardedItemsRequest req = XmlUtil.DeserializeXml<ProcessRewardedItemsRequest>(request);
|
||||
|
||||
if (req is null || req.ItemsActionMap is null)
|
||||
return Ok(new ProcessRewardedItemsResponse());
|
||||
|
||||
int shard = 0;
|
||||
int gold = 0;
|
||||
bool soldInventoryItems = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user