nili 7 months ago
parent
commit
e3361a8afc
  1. 2
      game-service/src/main/java/awesome/group/game/service/citrus/UserService.java

2
game-service/src/main/java/awesome/group/game/service/citrus/UserService.java

@ -18,6 +18,7 @@ import awesome.group.game.service.common.exception.PaganiExceptionCode;
import awesome.group.game.service.util.DateUtil;
import awesome.group.game.service.util.EncryptUtil;
import com.google.gson.Gson;
import org.apache.commons.lang.RandomStringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
@ -103,6 +104,7 @@ public class UserService {
user = new MatrixUser();
user.setAppId(app.getId());
user.setMobile(mobile);
user.setInviteCode(RandomStringUtils.randomAlphabetic(12));
userMapper.insert(user);
}
return user;

Loading…
Cancel
Save