1
0
mirror of synced 2024-11-12 01:20:51 +01:00

Update guest fix

This commit is contained in:
asesidaa 2022-09-17 21:36:31 +08:00
parent 116b134b70
commit d1995cab85

View File

@ -46,11 +46,16 @@ public class PlayResultController : BaseController<PlayResultController>
};
// Fix issue caused by guest play, god knows why they send guest play data
if (request.BaidConf == 0 || await userDatumService.GetFirstUserDatumOrNull(request.BaidConf) is null)
if (request.BaidConf == 0)
{
return Ok(response);
}
if (await userDatumService.GetFirstUserDatumOrNull(request.BaidConf) is null)
{
Logger.LogWarning("Game uploading a non exisiting user with baid {Baid}", request.BaidConf);
}
var lastPlayDatetime = DateTime.ParseExact(playResultData.PlayDatetime, Constants.DATE_TIME_FORMAT,
CultureInfo.InvariantCulture);