nili 1 year ago
parent
commit
36204e3640
  1. 2
      game-service/src/main/java/awesome/group/game/service/AppService.java
  2. 1
      game-service/src/main/java/awesome/group/game/service/WxService.java

2
game-service/src/main/java/awesome/group/game/service/AppService.java

@ -3,7 +3,6 @@ package awesome.group.game.service;
import awesome.group.game.dao.bean.GameApp; import awesome.group.game.dao.bean.GameApp;
import awesome.group.game.dao.mapper.GameAppMapper; import awesome.group.game.dao.mapper.GameAppMapper;
import awesome.group.game.service.bo.AppInfo; import awesome.group.game.service.bo.AppInfo;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.google.gson.Gson; import com.google.gson.Gson;
@ -13,7 +12,6 @@ import org.springframework.stereotype.Service;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;

1
game-service/src/main/java/awesome/group/game/service/WxService.java

@ -93,6 +93,7 @@ public class WxService {
u.setInviteCode(RandomStringUtils.randomAlphanumeric(10)); u.setInviteCode(RandomStringUtils.randomAlphanumeric(10));
weGameUserMapper.insert(u); weGameUserMapper.insert(u);
} else { } else {
u.setSessionKey(data.session_key);
weGameUserMapper.updateSessionKey(data.session_key, u.getId()); weGameUserMapper.updateSessionKey(data.session_key, u.getId());
} }
return u; return u;

Loading…
Cancel
Save