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