|
@@ -36,12 +36,12 @@ public class ProjectAuthorityController {
|
|
|
*/
|
|
|
@PostMapping("/authority")
|
|
|
public R authority(@RequestBody JSONObject json) throws ParseException {
|
|
|
- log.info("json:{}",json);
|
|
|
+ log.info("授权管理项目接收json:{}",json);
|
|
|
SM4Utils sm4 = new SM4Utils();
|
|
|
Map map = new HashMap<>();
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
String secretKey = sm4.decryptData_CBC(json.get("secretKey").toString(),json.get("macAddress").toString());
|
|
|
- log.info("认证secretKey:{}",secretKey);
|
|
|
+ log.info("授权管理项目接收认证secretKey:{}",secretKey);
|
|
|
SysSecretProject sysSecretProject = sysSecretProjectMapper.selectBaseBySecretKey(secretKey);
|
|
|
Date now = new Date();
|
|
|
// 获取过期日期加一天,例25号过期,实际是26号0点过期;
|
|
@@ -56,7 +56,7 @@ public class ProjectAuthorityController {
|
|
|
}
|
|
|
map.put("overdueDate", seconds);
|
|
|
map.put("isSwitch", sysSecretProject.getIsSwitch().equals(true) ? 1 : 0);
|
|
|
- log.info("map:{}",map);
|
|
|
+ log.info("授权管理项目返回map:{}",map);
|
|
|
return R.ok(map);
|
|
|
}
|
|
|
|