返回0001处理

parent d38fd9b4
...@@ -101,8 +101,8 @@ public class UserQueryLogController { ...@@ -101,8 +101,8 @@ public class UserQueryLogController {
String nowEndStr=sf.format(new Date()); String nowEndStr=sf.format(new Date());
date2=sfs.parse(nowEndStr+" 23:59:59"); date2=sfs.parse(nowEndStr+" 23:59:59");
} }
int startP=(pageId-1)*pageSize;
List<UserQueryLog> userQueryLogs=userQueryLogService.findByTimestamp(date1,date2,pageId-1,pageSize); List<UserQueryLog> userQueryLogs=userQueryLogService.findByTimestamp(date1,date2,startP,pageSize);
Long total=userQueryLogService.findByTimestampCount(date1,date2); Long total=userQueryLogService.findByTimestampCount(date1,date2);
PageModel<UserQueryLog> uqp=new PageModel<UserQueryLog>(); PageModel<UserQueryLog> uqp=new PageModel<UserQueryLog>();
uqp.setTotal(total); uqp.setTotal(total);
...@@ -118,7 +118,8 @@ public class UserQueryLogController { ...@@ -118,7 +118,8 @@ public class UserQueryLogController {
ll.setCreateDate(sdf.format(ll.getCreatedAt())); ll.setCreateDate(sdf.format(ll.getCreatedAt()));
} }
}catch (Exception e){ }catch (Exception e){
LOGGER.info("日期时间转换异常");
return JsonResult.buildErrorStateResult("日期时间转换异常",null);
} }
uqp.setPageSize(pageSize); uqp.setPageSize(pageSize);
...@@ -229,12 +230,18 @@ public class UserQueryLogController { ...@@ -229,12 +230,18 @@ public class UserQueryLogController {
if(key.equals("phoneNo")){ if(key.equals("phoneNo")){
phonesCards=getBankCardsByPhoneNos(queryV); phonesCards=getBankCardsByPhoneNos(queryV);
if(phonesCards!=null&&phonesCards.get("errorMsg")!=null&&!phonesCards.get("errorMsg").equals("")){
return JsonResult.buildErrorStateResult(phonesCards.get("errorMsg"),null);
}
}else{ }else{
List<String> phones=new ArrayList<String>(); List<String> phones=new ArrayList<String>();
for(UserDetail uda:userDetails){ for(UserDetail uda:userDetails){
phones.add(uda.getPhoneNo()); phones.add(uda.getPhoneNo());
} }
phonesCards=getBankCardsByPhoneNos(phones); phonesCards=getBankCardsByPhoneNos(phones);
if(phonesCards!=null&&phonesCards.get("errorMsg")!=null&&!phonesCards.get("errorMsg").equals("")){
return JsonResult.buildErrorStateResult(phonesCards.get("errorMsg"),null);
}
} }
} }
...@@ -323,8 +330,9 @@ public class UserQueryLogController { ...@@ -323,8 +330,9 @@ public class UserQueryLogController {
String dataStr=data1.get("data").getAsString(); String dataStr=data1.get("data").getAsString();
String signStr=data1.get("sign").getAsString(); String signStr=data1.get("sign").getAsString();
//校验签名 //校验签名
if(RSA.checkSign(dataStr,signStr,publicKey)){ if(MD5Util.build(dataStr).equals(signStr)){
String jsonDataStr=RSA.decrypt(dataStr,privateKey); String jsonDataStr=RSA.decrypt(dataStr,privateKey);
//String chang=jsonDataStr.substring(1,jsonDataStr.length()-1);
JsonArray listObj = new JsonParser().parse(jsonDataStr).getAsJsonArray();//.getAsJsonObject(); JsonArray listObj = new JsonParser().parse(jsonDataStr).getAsJsonArray();//.getAsJsonObject();
for(JsonElement jsonElement : listObj) { for(JsonElement jsonElement : listObj) {
JsonObject jo = jsonElement.getAsJsonObject(); JsonObject jo = jsonElement.getAsJsonObject();
...@@ -338,12 +346,15 @@ public class UserQueryLogController { ...@@ -338,12 +346,15 @@ public class UserQueryLogController {
phonesMap.put(phone,cards); phonesMap.put(phone,cards);
} }
}else{ }else{
phonesMap.put("errorMsg","签名校验失败!");
LOGGER.info("签名校验失败!"); LOGGER.info("签名校验失败!");
} }
}else{ }else{
phonesMap.put("errorMsg","从支付中心接口返回data为null");
LOGGER.info("从支付中心接口返回data为null"); LOGGER.info("从支付中心接口返回data为null");
} }
}catch(Exception e){ }catch(Exception e){
phonesMap.put("errorMsg","查询银行卡信息接口返回解析异常");
LOGGER.info("查询银行卡信息接口返回解析异常"); LOGGER.info("查询银行卡信息接口返回解析异常");
} }
return phonesMap; return phonesMap;
...@@ -578,7 +589,7 @@ public class UserQueryLogController { ...@@ -578,7 +589,7 @@ public class UserQueryLogController {
return userName; return userName;
} }
}catch(Exception e){ }catch(Exception e){
LOGGER.info("解析支付中心返回结果resultStr异常"); LOGGER.info("解析运营系统用户token返回结果resultStr异常");
} }
return ""; return "";
} }
......
...@@ -3,7 +3,7 @@ configserver.disable=1 ...@@ -3,7 +3,7 @@ configserver.disable=1
configserver.system=xyqb-user configserver.system=xyqb-user
#xyqb.data.mysql.jdbc-url=jdbc:mysql://192.168.4.22:3306/xyqb_user?useUnicode=true&characterEncoding=UTF8 #xyqb.data.mysql.jdbc-url=jdbc:mysql://192.168.4.22:3306/xyqb_user?useUnicode=true&characterEncoding=UTF8
xyqb.data.mysql.jdbc-url=jdbc:mysql://192.168.4.153:3306/xyqb_user?useUnicode=true&characterEncoding=UTF8 xyqb.data.mysql.jdbc-url=jdbc:mysql://192.168.4.26:3306/xyqb_user?useUnicode=true&characterEncoding=UTF8
xyqb.data.mysql.password=qatest xyqb.data.mysql.password=qatest
......
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