Update guest fix
This commit is contained in:
parent
116b134b70
commit
d1995cab85
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user