Commit 31032450 by lihui.wang

成功!!!

parent b01b30c6
...@@ -111,12 +111,10 @@ public class PayMessageServiceImpl implements IPayMessageService { ...@@ -111,12 +111,10 @@ public class PayMessageServiceImpl implements IPayMessageService {
if (result) if (result)
{ {
markMessageAsSuccess(message); markMessageAsSuccess(message);
logger.info("消息状态更新成功,状态为1");
} }
else else
{ {
markMessageAsFailed(message); markMessageAsFailed(message);
logger.error("消息状态更新为1失败,状态码改为-1");
} }
} }
......
...@@ -90,24 +90,26 @@ public class AliFuWuChuangSingleMessageSender implements IMessageProcessor { ...@@ -90,24 +90,26 @@ public class AliFuWuChuangSingleMessageSender implements IMessageProcessor {
AlipayMobilePublicMessageSingleSendResponse response = alipayClient.execute(request,null,payPlatformAccountDM.getAuthcode()); AlipayMobilePublicMessageSingleSendResponse response = alipayClient.execute(request,null,payPlatformAccountDM.getAuthcode());
logger.info(JSON.toJSONString(request)); // logger.info("requestBdoy:{"+JSON.toJSONString(request)+"}");
logger.info("-----------------"); // logger.info("----------------------------------------------");
logger.info(JSON.toJSONString(response)); // logger.info("responseBody:{"+JSON.toJSONString(response)+"}");
if (response.getCode().equals("200")){ if (response.getCode().equals("200")){
logger.info("消息推送成功"); logger.info("requestBdoy:{"+JSON.toJSONString(request)+"}"+"\n"+"responseBody:{"+JSON.toJSONString(response)+"}");
return true; return true;
} }
else if (response.getCode() == "12007") //未关注 else if (response.getCode() == "12007") //未关注
{ {
iPayMessageService.updateMessageTryTimes(3,payMessage.getPayMessage().getId()); iPayMessageService.updateMessageTryTimes(3,payMessage.getPayMessage().getId());
logger.info("此消息推送重试次数为:3"); logger.warn("requestBdoy:{"+JSON.toJSONString(request)+"}"+"\n"+"responseBody:{"+JSON.toJSONString(response)+"}");
return false; return false;
} }
else else
{ {
logger.info(response.getCode()); logger.info(response.getCode());
logger.error("消息推送状态码未知"); logger.error("消息推送状态码未知");
logger.warn("requestBdoy:{"+JSON.toJSONString(request)+"}"+"\n"+"responseBody:{"+JSON.toJSONString(response)+"}");
return false; return false;
} }
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
p.Code AS PayCode p.Code AS PayCode
FROM [Freemud_ThirdParty].[dbo].[Pay_Message] a WITH ( NOLOCK ) FROM [Freemud_ThirdParty].[dbo].[Pay_Message] a WITH ( NOLOCK )
INNER JOIN ${linkServer}zhuihu.dbo.Pay p WITH ( NOLOCK ) ON a.FMId = p.ZhuiHuOrderId INNER JOIN ${linkServer}zhuihu.dbo.Pay p WITH ( NOLOCK ) ON a.FMId = p.ZhuiHuOrderId
INNER JOIN zhuihu.dbo.[Partner] part WITH(NOLOCK) ON part.ID=a.PartnerId WHERE Pay_Message_Active_ID=100008333 INNER JOIN zhuihu.dbo.[Partner] part WITH(NOLOCK) ON part.ID=a.PartnerId WHERE Pay_Message_Active_ID=100008333 AND Status=0
]]> ]]>
</select> </select>
......
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