mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00
GetAssetVersions placeholder + WoJS bugfixes
This commit is contained in:
parent
1dfcc655eb
commit
3e06d89cb2
@ -602,9 +602,7 @@ public class ContentController : Controller {
|
|||||||
// Find the dragon
|
// Find the dragon
|
||||||
Dragon? dragon = viking.Dragons.FirstOrDefault(e => e.Id == petData.RaisedPetID);
|
Dragon? dragon = viking.Dragons.FirstOrDefault(e => e.Id == petData.RaisedPetID);
|
||||||
if (dragon is null) {
|
if (dragon is null) {
|
||||||
return Ok(new SetRaisedPetResponse {
|
return Ok(false);
|
||||||
RaisedPetSetResult = RaisedPetSetResult.Invalid
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dragon.RaisedPetData = XmlUtil.SerializeXml(UpdateDragon(dragon, petData));
|
dragon.RaisedPetData = XmlUtil.SerializeXml(UpdateDragon(dragon, petData));
|
||||||
@ -1576,7 +1574,7 @@ public class ContentController : Controller {
|
|||||||
avatarData.DisplayName = displayNamesService.GetName(firstNameID, secondNameID, thirdNameID);
|
avatarData.DisplayName = displayNamesService.GetName(firstNameID, secondNameID, thirdNameID);
|
||||||
viking.AvatarSerialized = XmlUtil.SerializeXml(avatarData);
|
viking.AvatarSerialized = XmlUtil.SerializeXml(avatarData);
|
||||||
ctx.SaveChanges();
|
ctx.SaveChanges();
|
||||||
return Ok();
|
return Ok(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
@ -61,6 +61,12 @@ public class ItemStoreController : Controller {
|
|||||||
return Ok(XmlUtil.ReadResourceXmlString("rankattrib"));
|
return Ok(XmlUtil.ReadResourceXmlString("rankattrib"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Route("ItemStoreWebService.asmx/GetAssetVersions")]
|
||||||
|
public IActionResult GetAssetVersions() {
|
||||||
|
// TODO return AssetVersion[]
|
||||||
|
return Ok(null);
|
||||||
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[Produces("application/xml")]
|
[Produces("application/xml")]
|
||||||
[Route("ItemStoreWebService.asmx/GetAnnouncementsByUser")]
|
[Route("ItemStoreWebService.asmx/GetAnnouncementsByUser")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user