| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.acct.smo.IQrCodePaymentSMO; |
| | | import com.java110.acct.smo.impl.QrCodeWechatPaymentAdapt; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.AbstractServiceCmdListener; |
| | |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | |
| | | */ |
| | | @Java110Cmd(serviceCode = "payment.qrCodePayment") |
| | | public class QrCodePaymentCmd extends AbstractServiceCmdListener { |
| | | private static Logger logger = LoggerFactory.getLogger(QrCodePaymentCmd.class); |
| | | |
| | | |
| | | private IQrCodePaymentSMO qrCodePaymentSMOImpl; |
| | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.error(e.getLocalizedMessage())); |
| | | return; |
| | | } |
| | | logger.debug("适配器返回结果:"+resultVo.toString()); |
| | | if (ResultVo.CODE_OK != resultVo.getCode()) { |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.error(resultVo.getMsg(),reqJson)); |
| | | return; |