记得上下班打卡 | git大法好,push需谨慎

Commit adb194b7 authored by zhengfuxin's avatar zhengfuxin

修改抖音new的东西。

parent da97c74c
package com.liquidnet.service.dragon.channel.douyinpay.biz; package com.liquidnet.service.dragon.channel.douyinpay.biz;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.liquidnet.commons.lang.util.CollectionUtil;
import com.liquidnet.service.dragon.utils.PayDouYinpayUtils; import com.liquidnet.service.dragon.utils.PayDouYinpayUtils;
import com.liquidnet.service.dragon.utils.PayWepayUtils; import com.liquidnet.service.dragon.utils.PayWepayUtils;
import com.liquidnet.service.dragon.utils.XmlUtil; import com.liquidnet.service.dragon.utils.XmlUtil;
...@@ -37,7 +38,7 @@ public class DouYinPayBiz { ...@@ -37,7 +38,7 @@ public class DouYinPayBiz {
* @date 2021/11/12 上午11:27 * @date 2021/11/12 上午11:27
*/ */
public Map<String, Object> tradeQuery(String outOrderNo, String appid) { public Map<String, Object> tradeQuery(String outOrderNo, String appid) {
Map<String, Object> respMap = new HashMap<>(); Map<String, Object> respMap =CollectionUtil.mapStringObject();
log.info("DouYinPayBiz.tradeQuery-->> request out_order_no:{} appid:{} ",outOrderNo,appid); log.info("DouYinPayBiz.tradeQuery-->> request out_order_no:{} appid:{} ",outOrderNo,appid);
SortedMap<String, Object> parameters = new TreeMap<>(); SortedMap<String, Object> parameters = new TreeMap<>();
parameters.put("app_id", appid); parameters.put("app_id", appid);
......
...@@ -7,10 +7,7 @@ import com.alipay.api.request.AlipayTradeRefundRequest; ...@@ -7,10 +7,7 @@ import com.alipay.api.request.AlipayTradeRefundRequest;
import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse; import com.alipay.api.response.AlipayTradeFastpayRefundQueryResponse;
import com.alipay.api.response.AlipayTradeRefundResponse; import com.alipay.api.response.AlipayTradeRefundResponse;
import com.liquidnet.common.exception.LiquidnetServiceException; import com.liquidnet.common.exception.LiquidnetServiceException;
import com.liquidnet.commons.lang.util.DateUtil; import com.liquidnet.commons.lang.util.*;
import com.liquidnet.commons.lang.util.HttpUtil;
import com.liquidnet.commons.lang.util.IDGenerator;
import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.base.ResponseDto; import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.base.SqlMapping; import com.liquidnet.service.base.SqlMapping;
import com.liquidnet.service.dragon.channel.wepay.resp.AliPayRefundReturnCallBackDto; import com.liquidnet.service.dragon.channel.wepay.resp.AliPayRefundReturnCallBackDto;
...@@ -522,7 +519,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService ...@@ -522,7 +519,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
public String douYinPayRefundCodeStatus(String outRefundNo) { public String douYinPayRefundCodeStatus(String outRefundNo) {
try { try {
//1、组织数据 //1、组织数据
Map<String,Object> map =new HashMap<>(); Map<String,Object> map = CollectionUtil.mapStringObject();
map.put("app_id",PayDouYinpayUtils.getInstance().getAPP_ID()); map.put("app_id",PayDouYinpayUtils.getInstance().getAPP_ID());
map.put("out_refund_no",outRefundNo); map.put("out_refund_no",outRefundNo);
//2、加密 //2、加密
......
...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.alipay.api.internal.util.file.IOUtils; import com.alipay.api.internal.util.file.IOUtils;
import com.google.gson.JsonElement; import com.google.gson.JsonElement;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import com.liquidnet.commons.lang.util.CollectionUtil;
import com.liquidnet.commons.lang.util.MD5Utils; import com.liquidnet.commons.lang.util.MD5Utils;
import org.apache.http.client.config.RequestConfig; import org.apache.http.client.config.RequestConfig;
import org.apache.http.config.Registry; import org.apache.http.config.Registry;
...@@ -197,7 +198,7 @@ public class PayDouYinpayUtils { ...@@ -197,7 +198,7 @@ public class PayDouYinpayUtils {
} }
public boolean notifySign(String sign, JSONObject jsonObject) { public boolean notifySign(String sign, JSONObject jsonObject) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = CollectionUtil.mapStringObject();
//循环转换 //循环转换
for (Map.Entry<String, Object> entry : jsonObject.entrySet()) { for (Map.Entry<String, Object> entry : jsonObject.entrySet()) {
map.put(entry.getKey(), entry.getValue()); map.put(entry.getKey(), entry.getValue());
......
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