| | |
| | | |
| | | 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; |
| | |
| | | try { |
| | | resultVo = qrCodePaymentSMOImpl.pay(reqJson.getString("communityId"), orderId, receivedAmount, authCode, ""); |
| | | } catch (Exception e) { |
| | | logger.error("异常了", e); |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.error(e.getLocalizedMessage())); |
| | | return; |
| | | } |
| | |
| | | } |
| | | String appId = cmdDataFlowContext.getReqHeaders().get(CommonConstant.APP_ID); |
| | | String userId = cmdDataFlowContext.getReqHeaders().get(CommonConstant.USER_ID); |
| | | String paramOut = CallApiServiceFactory.postForApi(appId, reqJson.toJSONString(), "fee.payFee", String.class, userId); |
| | | cmdDataFlowContext.setResponseEntity(new ResponseEntity(paramOut, HttpStatus.OK)); |
| | | JSONObject paramOut = CallApiServiceFactory.postForApi(appId, reqJson, "fee.payFee", JSONObject.class, userId); |
| | | cmdDataFlowContext.setResponseEntity(new ResponseEntity(paramOut.toJSONString(), HttpStatus.OK)); |
| | | } |
| | | |
| | | } |