Commit 237e5ea6 authored by huyuchen's avatar huyuchen

huyc fdd代码提交

parent 0f96a352
......@@ -37,8 +37,8 @@ public class FddUtil {
//法大大公司角色
public static final String COMPANY = "company";
@Autowired
private FddReqLogService reqLogService;
@Autowired
private FddReqLogService reqLogService;
@Autowired
private RedisTemplate<String, String> stringRedisTemplate;
......@@ -52,7 +52,6 @@ public class FddUtil {
* @Date: 2021/1/18
* @Description: 法大大请求对象
* @return: com.fadada.api.FadadaApiClient
* @see com.yifu.cloud.v1.hr.basicArchives.utils
**/
public FadadaApiClient getFadadaApiClient() {
FadadaApiConfig fadadaApiConfig = new FadadaApiConfig();
......@@ -87,13 +86,13 @@ public class FddUtil {
}
accessToken = data.getAccessToken();
stringValueOperations.set(accessTokenKey, accessToken, CommonConstants.dingleDigitIntArray[2], TimeUnit.HOURS);
//记录日志
FddReqLog fddReqLog = new FddReqLog();
fddReqLog.setReqData("getToken");
fddReqLog.setResData(JSON.toJSONString(data));
fddReqLog.setMethodName(Thread.currentThread().getStackTrace()[1].getMethodName());
fddReqLog.setClassName(Thread.currentThread().getStackTrace()[1].getClassName());
reqLogService.save(fddReqLog);
//记录日志
FddReqLog fddReqLog = new FddReqLog();
fddReqLog.setReqData("getToken");
fddReqLog.setResData(JSON.toJSONString(data));
fddReqLog.setMethodName(Thread.currentThread().getStackTrace()[1].getMethodName());
fddReqLog.setClassName(Thread.currentThread().getStackTrace()[1].getClassName());
reqLogService.save(fddReqLog);
}
return accessToken;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment