|
@@ -119,7 +119,7 @@ public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements
|
|
|
String body = redisTemplate.opsForValue().get(KeysConst.TIDE_TOKEN + jToken);
|
|
|
if(TextUtils.isEmpty(body)){
|
|
|
body = HttpRequest.post("https://ssp-api.sxtvs.com.cn/apiv4.3/api/user_information")
|
|
|
- .body("jToken=" + jToken + "&site=76").execute().body();
|
|
|
+ .body("jtoken=" + jToken + "&site=76").execute().body();
|
|
|
redisTemplate.opsForValue().set(KeysConst.TIDE_TOKEN + jToken, body, Duration.ofDays(30));
|
|
|
}
|
|
|
|
|
@@ -137,6 +137,7 @@ public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements
|
|
|
new UserAuth(UserPlatform.SSP, uid))));
|
|
|
} catch (Exception e) {
|
|
|
redisTemplate.delete(KeysConst.TIDE_TOKEN + jToken);
|
|
|
+ log.error(e.getMessage(), e);
|
|
|
throw new APIException(400, "获取用户失败");
|
|
|
}
|
|
|
}
|