添加token打印日志
This commit is contained in:
+10
-2
@@ -163,6 +163,7 @@ public class SrmsApiServiceImpl implements SrmsApiService {
|
||||
// 验证token
|
||||
String token = req.getHeader(X_ACCESS_TOKEN);
|
||||
try {
|
||||
log.info("token============================" + token);
|
||||
// 验证Token有效性
|
||||
boolean tokenOK = TokenUtils.verifyToken(req, sysBaseAPI, redisUtil);
|
||||
if(!tokenOK){
|
||||
@@ -308,6 +309,8 @@ public class SrmsApiServiceImpl implements SrmsApiService {
|
||||
public Result<List<JSONObject>> getByLawsProductDesign(JSONObject json, HttpServletRequest req) {
|
||||
// 验证token
|
||||
try {
|
||||
String token = req.getHeader(X_ACCESS_TOKEN);
|
||||
log.info("token============================" + token);
|
||||
// 验证Token有效性
|
||||
boolean tokenOK = TokenUtils.verifyToken(req, sysBaseAPI, redisUtil);
|
||||
if(!tokenOK){
|
||||
@@ -363,6 +366,8 @@ public class SrmsApiServiceImpl implements SrmsApiService {
|
||||
public Result<List<StandardTree>> getByLawsSystem(JSONObject json, HttpServletRequest req) {
|
||||
// 验证token
|
||||
try {
|
||||
String token = req.getHeader(X_ACCESS_TOKEN);
|
||||
log.info("token============================" + token);
|
||||
// 验证Token有效性
|
||||
boolean tokenOK = TokenUtils.verifyToken(req, sysBaseAPI, redisUtil);
|
||||
if(!tokenOK){
|
||||
@@ -446,6 +451,7 @@ public class SrmsApiServiceImpl implements SrmsApiService {
|
||||
// 验证token
|
||||
String token = req.getHeader(X_ACCESS_TOKEN);
|
||||
try {
|
||||
log.info("token============================" + token);
|
||||
// 验证Token有效性
|
||||
boolean tokenOK = TokenUtils.verifyToken(req, sysBaseAPI, redisUtil);
|
||||
if(!tokenOK){
|
||||
@@ -600,6 +606,8 @@ public class SrmsApiServiceImpl implements SrmsApiService {
|
||||
@Override
|
||||
public Result<String> syncPartData(JSONObject json, HttpServletRequest req) {
|
||||
try {
|
||||
String token = req.getHeader(X_ACCESS_TOKEN);
|
||||
log.info("token============================" + token);
|
||||
// 验证Token有效性
|
||||
boolean tokenOK = TokenUtils.verifyToken(req, sysBaseAPI, redisUtil);
|
||||
if(!tokenOK){
|
||||
@@ -683,7 +691,7 @@ public class SrmsApiServiceImpl implements SrmsApiService {
|
||||
if(!CollectionUtils.isEmpty(listLawsPartStandard)){
|
||||
for (LawsPartStandard lawsPartStandard : listLawsPartStandard) {
|
||||
JSONObject rows = new JSONObject();
|
||||
rows.put("PartCategroyNum",lawsPartStandard.getPartCategoryNum());
|
||||
rows.put(PART_CATEGROY_NUM,lawsPartStandard.getPartCategoryNum());
|
||||
rows.put("StandardPdmType",lawsPartStandard.getStandardPdmType());
|
||||
rows.put("StandardNumber",lawsPartStandard.getStandardNumber());
|
||||
rows.put("Remark1",lawsPartStandard.getRemark1());
|
||||
@@ -694,7 +702,7 @@ public class SrmsApiServiceImpl implements SrmsApiService {
|
||||
}
|
||||
JSONObject requests = new JSONObject();
|
||||
requests.put("Rows",listObj);
|
||||
all.put("Requests",requests);
|
||||
all.put(REQUESTS,requests);
|
||||
// todo url
|
||||
JSONObject reData = restTemplate.postForObject(partStandardUrl,all,JSONObject.class);
|
||||
log.info(JSON.toJSONString(reData));
|
||||
|
||||
Reference in New Issue
Block a user