nili 1 year ago
parent
commit
bf2c88e450
  1. 2
      game-service/src/main/java/awesome/group/game/service/WxService.java
  2. 2
      game-web/src/main/java/awesome/group/controller/LoginController.java

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

@ -55,7 +55,7 @@ public class WxService {
} else {
weGameUserMapper.updateSessionKey(data.session_key, u.getId());
}
return JwtUtils.generatorToken(u.getId() + "", 2 * 86400);
return JwtUtils.generatorToken(u.getId() + "", 20 * 86400);
}
public void updateUserInfo(Integer userId, String rawData, String signature) {

2
game-web/src/main/java/awesome/group/controller/LoginController.java

@ -16,7 +16,7 @@ public class LoginController {
@Resource
private WxService wxService;
@GetMapping
@GetMapping("/current")
@RestApi
public R<CurrentUser> currentUser() {
Integer userId = RequestContext.getUid();

Loading…
Cancel
Save