Commit bdf55076 authored by hezhen's avatar hezhen

修改回调

parent 5c430330
......@@ -96,15 +96,25 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper,OrderPay> {
String url=pay.getNotifyUrl();
url+="&tradeNo="+orderNo;
log.error("---支付回调处理---orderNo======="+orderNo+"----notifyUrl===="+url);
String result= HTTPSUtils.httpRequest(url, "GET",null);
String result="";
if(url.contains("https")||url.contains("HTTPS")){
result= HTTPSUtils.httpRequest(url, "GET",null);
}else{
result= HTTPUtils.doGet(url);
}
log.error("---支付回调处理---orderNo======="+orderNo+"---result==="+result);
}
}
}
public static void main(String[] args) {
String url="https://xxtest.upyuns.com/api/order/baseOrder/app/unauth/notifyUrl?orderNo=20190603133339010003&tradeNo=20190603133339000004";
String result=HTTPSUtils.httpRequest(url, "GET",null);
String url="https://xxtest.upyuns.com/api/order/baseOrder/app/unauth/notifyUrl?orderNo=20190603141137010007&tradeNo=20190603141137000002";
String result="";
if(url.contains("https")||url.contains("HTTPS")){
result= HTTPSUtils.httpRequest(url, "GET",null);
}else{
result= HTTPUtils.doGet(url);
}
System.out.println(result);
}
}
\ No newline at end of file
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