gpt4 book ai didi

org.xxpay.common.util.XXPayUtil.makeRetData()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 06:42:40 26 4
gpt4 key购买 nike

本文整理了Java中org.xxpay.common.util.XXPayUtil.makeRetData()方法的一些代码示例,展示了XXPayUtil.makeRetData()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XXPayUtil.makeRetData()方法的具体详情如下:
包路径:org.xxpay.common.util.XXPayUtil
类名称:XXPayUtil
方法名:makeRetData

XXPayUtil.makeRetData介绍

暂无

代码示例

代码示例来源:origin: jmdhappy/xxpay-master

public String doWxTransReq(String tradeType, JSONObject payOrder, String resKey) {
  Map<String,Object> paramMap = new HashMap<>();
  paramMap.put("tradeType", tradeType);
  paramMap.put("payOrder", payOrder);
  String jsonParam = RpcUtil.createBaseParam(paramMap);
  Map<String, Object> result = rpcCommonService.rpcPayChannel4WxService.doWxPayReq(jsonParam);
  String s = RpcUtil.mkRet(result);
  if(s == null) {
    return XXPayUtil.makeRetData(XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_FAIL, "0111", "调用微信支付失败"), resKey);
  }
  Map<String, Object> map = XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_SUCCESS, null);
  map.putAll((Map) result.get("bizResult"));
  return XXPayUtil.makeRetData(map, resKey);
}

代码示例来源:origin: jmdhappy/xxpay-master

public String doWxRefundReq(String tradeType, JSONObject refundOrder, String resKey) {
  Map<String,Object> paramMap = new HashMap<>();
  paramMap.put("tradeType", tradeType);
  paramMap.put("refundOrder", refundOrder);
  String jsonParam = RpcUtil.createBaseParam(paramMap);
  Map<String, Object> result = rpcCommonService.rpcPayChannel4AliService.doAliRefundReq(jsonParam);
  String s = RpcUtil.mkRet(result);
  if(s == null) {
    return XXPayUtil.makeRetData(XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_FAIL, "0111", "调用微信支付失败"), resKey);
  }
  Map<String, Object> map = XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_SUCCESS, null);
  map.putAll((Map) result.get("bizResult"));
  return XXPayUtil.makeRetData(map, resKey);
}

代码示例来源:origin: jmdhappy/xxpay-master

public String doWxPayReq(String tradeType, JSONObject payOrder, String resKey) {
  Map<String,Object> paramMap = new HashMap<>();
  paramMap.put("tradeType", tradeType);
  paramMap.put("payOrder", payOrder);
  String jsonParam = RpcUtil.createBaseParam(paramMap);
  Map<String, Object> result = rpcCommonService.rpcPayChannel4WxService.doWxPayReq(jsonParam);
  String s = RpcUtil.mkRet(result);
  if(s == null) {
    return XXPayUtil.makeRetData(XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_FAIL, "0111", "调用微信支付失败"), resKey);
  }
  Map<String, Object> map = XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_SUCCESS, null);
  map.putAll((Map) result.get("bizResult"));
  return XXPayUtil.makeRetData(map, resKey);
}

代码示例来源:origin: jmdhappy/xxpay-master

public String doWxPayReq(String tradeType, JSONObject payOrder, String resKey) {
  Map<String,Object> paramMap = new HashMap<>();
  paramMap.put("tradeType", tradeType);
  paramMap.put("payOrder", payOrder);
  String jsonParam = RpcUtil.createBaseParam(paramMap);
  Map<String, Object> result = payChannel4WxService.doWxPayReq(jsonParam);
  String s = RpcUtil.mkRet(result);
  if(s == null) {
    return XXPayUtil.makeRetData(XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_FAIL, "0111", "调用微信支付失败"), resKey);
  }
  Map<String, Object> map = XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_SUCCESS, null);
  map.putAll((Map) result.get("bizResult"));
  return XXPayUtil.makeRetData(map, resKey);
}

代码示例来源:origin: jmdhappy/xxpay-master

public String doAliPayReq(String channelId, JSONObject payOrder, String resKey) {
  Map<String,Object> paramMap = new HashMap<>();
  paramMap.put("payOrder", payOrder);
  String jsonParam = RpcUtil.createBaseParam(paramMap);
  Map<String, Object> result;
  switch (channelId) {
    case PayConstant.PAY_CHANNEL_ALIPAY_MOBILE :
      result = rpcCommonService.rpcPayChannel4AliService.doAliPayMobileReq(jsonParam);
      break;
    case PayConstant.PAY_CHANNEL_ALIPAY_PC :
      result = rpcCommonService.rpcPayChannel4AliService.doAliPayPcReq(jsonParam);
      break;
    case PayConstant.PAY_CHANNEL_ALIPAY_WAP :
      result = rpcCommonService.rpcPayChannel4AliService.doAliPayWapReq(jsonParam);
      break;
    case PayConstant.PAY_CHANNEL_ALIPAY_QR :
      result = rpcCommonService.rpcPayChannel4AliService.doAliPayQrReq(jsonParam);
      break;
    default:
      result = null;
      break;
  }
  String s = RpcUtil.mkRet(result);
  if(s == null) {
    return XXPayUtil.makeRetData(XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_FAIL, "0111", "调用支付宝支付失败"), resKey);
  }
  Map<String, Object> map = XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_SUCCESS, null);
  map.putAll((Map) result.get("bizResult"));
  return XXPayUtil.makeRetData(map, resKey);
}

代码示例来源:origin: jmdhappy/xxpay-master

public String doAliPayReq(String channelId, JSONObject payOrder, String resKey) {
  Map<String,Object> paramMap = new HashMap<>();
  paramMap.put("payOrder", payOrder);
  String jsonParam = RpcUtil.createBaseParam(paramMap);
  Map<String, Object> result;
  switch (channelId) {
    case PayConstant.PAY_CHANNEL_ALIPAY_MOBILE :
      result = payChannel4AliService.doAliPayMobileReq(jsonParam);
      break;
    case PayConstant.PAY_CHANNEL_ALIPAY_PC :
      result = payChannel4AliService.doAliPayPcReq(jsonParam);
      break;
    case PayConstant.PAY_CHANNEL_ALIPAY_WAP :
      result = payChannel4AliService.doAliPayWapReq(jsonParam);
      break;
    case PayConstant.PAY_CHANNEL_ALIPAY_QR :
      result = payChannel4AliService.doAliPayQrReq(jsonParam);
      break;
    default:
      result = null;
      break;
  }
  String s = RpcUtil.mkRet(result);
  if(s == null) {
    return XXPayUtil.makeRetData(XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_FAIL, "0111", "调用支付宝支付失败"), resKey);
  }
  Map<String, Object> map = XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_SUCCESS, null);
  map.putAll((Map) result.get("bizResult"));
  return XXPayUtil.makeRetData(map, resKey);
}

代码示例来源:origin: jmdhappy/xxpay-master

map.put("result", payOrder);
  _log.info("###### 商户查询订单处理完成 ######");
  return XXPayUtil.makeRetData(map, payContext.getString("resKey"));
}catch (Exception e) {
  _log.error(e, "");

代码示例来源:origin: jmdhappy/xxpay-master

map.put("result", payOrder);
  _log.info("###### 商户查询订单处理完成 ######");
  return XXPayUtil.makeRetData(map, payContext.getString("resKey"));
}catch (Exception e) {
  _log.error(e, "");

代码示例来源:origin: jmdhappy/xxpay-master

return XXPayUtil.makeRetData(map, refundContext.getString("resKey"));
}catch (Exception e) {
  _log.error(e, "");

代码示例来源:origin: jmdhappy/xxpay-master

_log.info("商户查询订单成功,payOrder={}", payOrder);
  _log.info("###### 商户查询订单处理完成 ######");
  return XXPayUtil.makeRetData(map, payContext.getString("resKey"));
}catch (Exception e) {
  _log.error(e, "");

代码示例来源:origin: jmdhappy/xxpay-master

Map<String, Object> map = XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_SUCCESS, null);
  map.put("transOrderId", transOrderId);
  return XXPayUtil.makeRetData(map, transContext.getString("resKey"));
}catch (Exception e) {
  _log.error(e, "");

代码示例来源:origin: jmdhappy/xxpay-master

return XXPayUtil.makeRetData(map, resKey);
} catch (WxPayException e) {
  _log.error(e, "下单失败");
  _log.info("err_code:{}", e.getErrCode());
  _log.info("err_code_des:{}", e.getErrCodeDes());
  return XXPayUtil.makeRetData(XXPayUtil.makeRetMap(PayConstant.RETURN_VALUE_SUCCESS, "", PayConstant.RETURN_VALUE_FAIL, "0111", "调用微信支付失败," + e.getErrCode() + ":" + e.getErrCodeDes()), resKey);

代码示例来源:origin: jmdhappy/xxpay-master

map.put("payOrderId", payOrderId);
map.put("payUrl", payUrl);
return XXPayUtil.makeRetData(map, resKey);

代码示例来源:origin: jmdhappy/xxpay-master

map.put("payOrderId", payOrderId);
map.put("payUrl", payUrl);
return XXPayUtil.makeRetData(map, resKey);

代码示例来源:origin: jmdhappy/xxpay-master

map.put("payOrderId", payOrderId);
map.put("payUrl", payUrl);
return XXPayUtil.makeRetData(map, resKey);

代码示例来源:origin: jmdhappy/xxpay-master

map.put("payOrderId", payOrderId);
map.put("payParams", payParams);
return XXPayUtil.makeRetData(map, resKey);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com