Commit 237e5ea6 authored by huyuchen's avatar huyuchen

huyc fdd代码提交

parent 0f96a352
...@@ -37,8 +37,8 @@ public class FddUtil { ...@@ -37,8 +37,8 @@ public class FddUtil {
//法大大公司角色 //法大大公司角色
public static final String COMPANY = "company"; public static final String COMPANY = "company";
@Autowired @Autowired
private FddReqLogService reqLogService; private FddReqLogService reqLogService;
@Autowired @Autowired
private RedisTemplate<String, String> stringRedisTemplate; private RedisTemplate<String, String> stringRedisTemplate;
...@@ -52,7 +52,6 @@ public class FddUtil { ...@@ -52,7 +52,6 @@ public class FddUtil {
* @Date: 2021/1/18 * @Date: 2021/1/18
* @Description: 法大大请求对象 * @Description: 法大大请求对象
* @return: com.fadada.api.FadadaApiClient * @return: com.fadada.api.FadadaApiClient
* @see com.yifu.cloud.v1.hr.basicArchives.utils
**/ **/
public FadadaApiClient getFadadaApiClient() { public FadadaApiClient getFadadaApiClient() {
FadadaApiConfig fadadaApiConfig = new FadadaApiConfig(); FadadaApiConfig fadadaApiConfig = new FadadaApiConfig();
...@@ -87,13 +86,13 @@ public class FddUtil { ...@@ -87,13 +86,13 @@ public class FddUtil {
} }
accessToken = data.getAccessToken(); accessToken = data.getAccessToken();
stringValueOperations.set(accessTokenKey, accessToken, CommonConstants.dingleDigitIntArray[2], TimeUnit.HOURS); stringValueOperations.set(accessTokenKey, accessToken, CommonConstants.dingleDigitIntArray[2], TimeUnit.HOURS);
//记录日志 //记录日志
FddReqLog fddReqLog = new FddReqLog(); FddReqLog fddReqLog = new FddReqLog();
fddReqLog.setReqData("getToken"); fddReqLog.setReqData("getToken");
fddReqLog.setResData(JSON.toJSONString(data)); fddReqLog.setResData(JSON.toJSONString(data));
fddReqLog.setMethodName(Thread.currentThread().getStackTrace()[1].getMethodName()); fddReqLog.setMethodName(Thread.currentThread().getStackTrace()[1].getMethodName());
fddReqLog.setClassName(Thread.currentThread().getStackTrace()[1].getClassName()); fddReqLog.setClassName(Thread.currentThread().getStackTrace()[1].getClassName());
reqLogService.save(fddReqLog); reqLogService.save(fddReqLog);
} }
return accessToken; 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