|
|
@@ -57,7 +57,7 @@ public class WxProviderServiceImpl implements WxProviderService {
|
|
|
|
|
|
private static final String WX_SUCCESS_XML = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";
|
|
|
|
|
|
- private static final String REFUND_URL = "https://bus.qlapp.cn/notice/pay/order/refundNotify";
|
|
|
+ private static final String REFUND_URL = "https://shop.api.zswlgz.com/notice/pay/order/refundNotify";
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> subJsapi(JsapiPayInfoPo po) {
|
|
|
@@ -484,7 +484,6 @@ public class WxProviderServiceImpl implements WxProviderService {
|
|
|
}
|
|
|
}
|
|
|
requestDataJson.put("shipping_list", shippingList);
|
|
|
-
|
|
|
JSONObject phoneJson = new JSONObject();
|
|
|
phoneJson.put("openid", openid);
|
|
|
requestDataJson.put("payer", phoneJson);
|
|
|
@@ -501,12 +500,10 @@ public class WxProviderServiceImpl implements WxProviderService {
|
|
|
HttpEntity responseEntity = response.getEntity();
|
|
|
String responseString = EntityUtils.toString(responseEntity);
|
|
|
log.info(responseString);
|
|
|
-
|
|
|
- // 关闭连接
|
|
|
response.close();
|
|
|
httpClient.close();
|
|
|
} catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ System.out.println(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -515,7 +512,6 @@ public class WxProviderServiceImpl implements WxProviderService {
|
|
|
*/
|
|
|
public static String queryTrace(String accessToken, String openid, String deliveryId,String waybillId) {
|
|
|
String url = "https://api.weixin.qq.com/cgi-bin/express/business/path/get?access_token=" + accessToken;
|
|
|
- // 查询运单轨迹传入参数
|
|
|
JSONObject requestDataJson = new JSONObject();
|
|
|
requestDataJson.put("openid",openid);//用户openid
|
|
|
requestDataJson.put("delivery_id",deliveryId);//快递公司ID
|
|
|
@@ -532,13 +528,11 @@ public class WxProviderServiceImpl implements WxProviderService {
|
|
|
HttpEntity responseEntity = response.getEntity();
|
|
|
String responseString = EntityUtils.toString(responseEntity,"UTF-8");
|
|
|
log.info(responseString);
|
|
|
-
|
|
|
- // 关闭连接
|
|
|
response.close();
|
|
|
httpClient.close();
|
|
|
return responseString;
|
|
|
} catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ System.out.println(e.getMessage());
|
|
|
}
|
|
|
return null;
|
|
|
}
|