支付中心错误反馈

parent a3e391be
......@@ -306,17 +306,22 @@ public class UserQueryLogController {
private HashMap<String,String> getBankCardsByPhoneNos(List<String> phoneNos){
//String phoneNoStr= JSON.toJSONString(phoneNos);
String phoneNoStr= new Gson().toJson(phoneNos);
//phoneNos
List<String> phoneNoss =new ArrayList<String>();
phoneNoss.add("1582223");
String phoneNoStr= new Gson().toJson(phoneNoss);
String data="";
String sign="";
HashMap<String,String> phonesMap=new HashMap<String,String>();
try{
data=RSA.encrypt(phoneNoStr,publicKey);
sign= MD5Util.build(data);
}catch(Exception e){
LOGGER.info("参数加密异常");
phonesMap.put("errorMsg","参数加密异常");
return null;
}
HashMap<String,String> phonesMap=new HashMap<String,String>();
HashMap<String, String> parameters = new HashMap<>();
parameters.put("data", data);
......@@ -350,7 +355,8 @@ public class UserQueryLogController {
LOGGER.info("签名校验失败!");
}
}else{
phonesMap.put("errorMsg","从支付中心接口返回data为null");
phonesMap.put("errorMsg",obj.get("msg").getAsString());
LOGGER.info("从支付中心接口返回data为null");
}
}catch(Exception e){
......
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