Browse Source

//add order

release_toaliyun_real
xhxu 4 years ago
parent
commit
6ae3a11fda
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      mallinkService/src/main/java/com/iformall/douyin/pay/DouYinPayHelper.java

+ 3
- 3
mallinkService/src/main/java/com/iformall/douyin/pay/DouYinPayHelper.java View File

@@ -166,9 +166,9 @@ public class DouYinPayHelper {
log.info("查询订单结果 request:"+map.toString()+" response:"+response);
JSONObject jsonObject = JSON.parseObject(response);
Integer code = jsonObject.getInteger("err_no");
OrderQueryResult result = new OrderQueryResult();
if (null != code && code.intValue() == 0 ) {
JSONObject info = jsonObject.getJSONObject("payment_info");
OrderQueryResult result = new OrderQueryResult();
result.setChannelGatewayNo(info.getString("channel_gateway_no"));
result.setChannelNo(info.getString("channel_no"));
result.setWay(info.getInteger("way"));
@@ -180,9 +180,9 @@ public class DouYinPayHelper {
log.info("orderQuery reponse error. request: "+JSON.toJSONString(map)+" response:"+response);
String errTips = jsonObject.getString("err_tips");
if(code != null && code.intValue() == 2000 && "单号记录不存在".equals(errTips)){
return null;
return result;
}else if(code != null && code.intValue() == 3100 && "未找到相应支付单".equals(errTips)){
return null;
return result;
}else{
throw new MallinkException(ErrorCode.PAY_ORDER_ERROR.getCode(), "订单查询状态非法异常");
}


Loading…
Cancel
Save