|
@@ -10,6 +10,7 @@ import com.rongwei.bscommon.sys.service.RedisService;
|
|
import com.rongwei.bscommon.sys.service.SysConfigService;
|
|
import com.rongwei.bscommon.sys.service.SysConfigService;
|
|
import com.rongwei.bsentity.dto.ApiCallDto;
|
|
import com.rongwei.bsentity.dto.ApiCallDto;
|
|
import com.rongwei.bsentity.dto.ApiReturnDto;
|
|
import com.rongwei.bsentity.dto.ApiReturnDto;
|
|
|
|
+import com.rongwei.bsentity.dto.ApiReturnTokenDto;
|
|
import com.rongwei.rwcommon.base.exception.CustomException;
|
|
import com.rongwei.rwcommon.base.exception.CustomException;
|
|
import com.rongwei.rwcommon.utils.Constants;
|
|
import com.rongwei.rwcommon.utils.Constants;
|
|
import com.rongwei.rwcommon.utils.SecurityUtil;
|
|
import com.rongwei.rwcommon.utils.SecurityUtil;
|
|
@@ -214,7 +215,7 @@ public class AttendanceAssessmentSdk {
|
|
body = HttpRequest.post(url).header("Content-Type", "application/json").body(JSONUtil.toJsonStr(postData)).execute().body();
|
|
body = HttpRequest.post(url).header("Content-Type", "application/json").body(JSONUtil.toJsonStr(postData)).execute().body();
|
|
logger.info("接口返回: {}", body);
|
|
logger.info("接口返回: {}", body);
|
|
|
|
|
|
- ApiReturnDto response = JSONUtil.toBean(body, ApiReturnDto.class);
|
|
|
|
|
|
+ ApiReturnTokenDto response = JSONUtil.toBean(body, ApiReturnTokenDto.class);
|
|
token = response.getToken();
|
|
token = response.getToken();
|
|
// 将 token 放入redis;
|
|
// 将 token 放入redis;
|
|
redisService.redisCatchInit(REDIS_KEY_NAME, token, TOKEN_EXPIRED_SECONDS);
|
|
redisService.redisCatchInit(REDIS_KEY_NAME, token, TOKEN_EXPIRED_SECONDS);
|