|
|
|
@@ -310,7 +310,7 @@ public class WxCashOutAdapterService implements CashOutAdapterService{ |
|
|
|
cashOut.setWxPayNo(detailId); |
|
|
|
String wxPayTime = returnMap.get("transfer_time"); |
|
|
|
cashOut.setWxPayTime(wxPayTime); |
|
|
|
return new CashOutAdapterResult(true,EnumCashOutStatus.SUCCESS.getCode(),"微信零钱支付申请成功",returnMap); |
|
|
|
return new CashOutAdapterResult(true,EnumCashOutStatus.SUCCESS.getCode(),"微信零钱支付查询成功",returnMap); |
|
|
|
}else if("FAILED".equals(realStatus)) { |
|
|
|
String msg = returnMap.get("reason"); |
|
|
|
return new CashOutAdapterResult(false,EnumCashOutStatus.FAIL.getCode(),msg,returnMap); |
|
|
|
@@ -320,13 +320,17 @@ public class WxCashOutAdapterService implements CashOutAdapterService{ |
|
|
|
} |
|
|
|
} else { |
|
|
|
log.error("微信零钱支付查询失败: " + response); |
|
|
|
String errMsg = ""; |
|
|
|
JSONObject errObj = errorQueryReqMap.getJSONObject(result_no); |
|
|
|
if (errObj != null) { |
|
|
|
errMsg = errObj.toJSONString(); |
|
|
|
} else { |
|
|
|
errMsg = returnMap.get("err_code_des"); |
|
|
|
String errMsg = returnMap.get("err_code_des"); |
|
|
|
String errCode = returnMap.get("err_code"); |
|
|
|
if ("NOT_FOUND".equals(errCode)) { |
|
|
|
return new CashOutAdapterResult(false,EnumCashOutStatus.FAIL.getCode(),errMsg,returnMap); |
|
|
|
} |
|
|
|
// JSONObject errObj = errorQueryReqMap.getJSONObject(result_no); |
|
|
|
// if (errObj != null) { |
|
|
|
// errMsg = errObj.toJSONString(); |
|
|
|
// } else { |
|
|
|
// errMsg = returnMap.get("err_code_des"); |
|
|
|
// } |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_CAST_ERROR.getCode(), "微信零钱支付查询失败:"+errMsg); |
|
|
|
} |
|
|
|
} |
|
|
|
|