Commit 79243b8f by lihui.wang

成功。

parent 31032450
......@@ -76,7 +76,6 @@ public class AliFuWuChuangSingleMessageSender implements IMessageProcessor {
}
logger.info("获取第三方");
try {
//String cerfile =payPlatformAccountDM.getCerfile()+".pkcs8.pem";
String cerfile= FileHelper.readToFile(payPlatformAccountDM.getCerfile()+".pkcs8.pem");
AlipayClient alipayClient = new DefaultAlipayClient(config.getServerUrl(),payPlatformAccountDM.getPlatformappid(),cerfile);
......@@ -89,12 +88,6 @@ public class AliFuWuChuangSingleMessageSender implements IMessageProcessor {
AlipayMobilePublicMessageSingleSendResponse response = alipayClient.execute(request,null,payPlatformAccountDM.getAuthcode());
// logger.info("requestBdoy:{"+JSON.toJSONString(request)+"}");
// logger.info("----------------------------------------------");
// logger.info("responseBody:{"+JSON.toJSONString(response)+"}");
if (response.getCode().equals("200")){
logger.info("requestBdoy:{"+JSON.toJSONString(request)+"}"+"\n"+"responseBody:{"+JSON.toJSONString(response)+"}");
return true;
......@@ -107,8 +100,7 @@ public class AliFuWuChuangSingleMessageSender implements IMessageProcessor {
}
else
{
logger.info(response.getCode());
logger.error("消息推送状态码未知");
logger.error("消息推送状态码未知"+response.getCode());
logger.warn("requestBdoy:{"+JSON.toJSONString(request)+"}"+"\n"+"responseBody:{"+JSON.toJSONString(response)+"}");
return false;
}
......
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