| | |
| | | import cc.mrbird.febs.pay.util.Signature; |
| | | import cc.mrbird.febs.pay.util.WebUtil; |
| | | import cc.mrbird.febs.pay.util.WeixinServiceUtil; |
| | | import cc.mrbird.febs.rabbit.producter.AgentProducer; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSONObject; |
| | |
| | | private final MallOrderInfoMapper mallOrderInfoMapper; |
| | | private final DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | private final WeixinServiceUtil weixinServiceUtil; |
| | | private final AgentProducer agentProducer; |
| | | private static final String PAY_SUCCESS = "SUCCESS"; |
| | | private static final String PAY_USERPAYING = "USERPAYING"; |
| | | @Override |
| | |
| | | |
| | | if(PAY_SUCCESS.equals(returnCode) && PAY_SUCCESS.equals(resultCode)){ |
| | | log.info("微信免密支付成功"); |
| | | agentProducer.sendSyAppOrderPayDoneQueue(outTradeNo); |
| | | return PAY_SUCCESS; |
| | | } else if (PAY_USERPAYING.equals(errCode)){//等待用户输入密码 |
| | | for(int i = 0; i < 4; i++){ |
| | |
| | | String tradeTypePaying = wxPayOrderQueryResult.getTradeType(); |
| | | if(PAY_SUCCESS.equals(tradeTypePaying)&& PAY_SUCCESS.equals(returnCodePaying)&& PAY_SUCCESS.equals(resultCodePaying)){ |
| | | log.info("微信加密支付成功!"); |
| | | agentProducer.sendSyAppOrderPayDoneQueue(outTradeNo); |
| | | return PAY_SUCCESS; |
| | | } |
| | | log.info("正在支付" + wxPayOrderQueryResult.getDetail()); |