mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-12 00:38:48 -07:00

- fix "No soil plots in v.2.9" - do not send null `UserItemPosition.Uses` for old clients - fix "unable to do the expansion missions in Sodoff 2.9" - move expansion board missions to Headmaster for old versions - fix race condition on PurchaseItems (causing negative gems amount issue) - move gems bundles to correct store - also fix "gems bundles not show after click on gems counter" issue - fix "internal error neighborhood" (WoJS) (caused by room item with null item) - fix "Release date is set to creation date upon being released" (WoJS) - update GrowTime value in SetRaisedPetInactive
40 lines
1019 B
C#
40 lines
1019 B
C#
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using sodoff.Model;
|
|
using sodoff.Schema;
|
|
using sodoff.Util;
|
|
|
|
namespace sodoff.Controllers.Common;
|
|
|
|
public class RatingController : Controller
|
|
{
|
|
|
|
[HttpPost]
|
|
[Produces("application/xml")]
|
|
[Route("MissionWebService.asmx/GetPayout")] // used by World Of Jumpstart
|
|
public IActionResult GetPayout([FromForm] int points) {
|
|
// TODO - placeholder
|
|
return Ok(points / 100);
|
|
}
|
|
|
|
[HttpPost]
|
|
[Produces("application/xml")]
|
|
[Route("ScoreWebService.asmx/SetScore")] // used by World Of Jumpstart
|
|
public IActionResult SetScore()
|
|
{
|
|
// TODO - placeholder
|
|
return Ok(true);
|
|
}
|
|
|
|
[HttpPost]
|
|
[Produces("application/xml")]
|
|
[Route("V2/Ratingwebservice.asmx/GetAverageRatingForRoom")]
|
|
//[VikingSession(UseLock=false)]
|
|
public IActionResult GetAverageRatingForRoom(/*Viking viking,*/ [FromForm] string request)
|
|
{
|
|
// TODO: This is a placeholder
|
|
return Ok(5);
|
|
}
|
|
|
|
}
|