Minor fix.

This commit is contained in:
genxium
2023-02-26 23:33:47 +08:00
parent 8cd5f1d475
commit 7fd96b335a
2 changed files with 10 additions and 4 deletions

View File

@@ -89,10 +89,10 @@ func (p *playerController) SMSCaptchaGet(c *gin.Context) {
var succRet int
if Conf.General.ServerEnv == SERVER_ENV_TEST {
player, err := models.GetPlayerByName(req.Num)
Logger.Info("A new SmsCaptcha record is needed for: ", zap.String("key", redisKey), zap.Any("player", player))
if nil == err && nil != player {
pass = true
succRet = Constants.RetCode.IsTestAcc
Logger.Info("A new SmsCaptcha record is needed for: ", zap.String("key", redisKey), zap.Any("player", player))
}
}