|
@@ -22,6 +22,7 @@ import thyyxxk.wxservice_server.entity.wxapi.GenMzPayQrcodeParam;
|
|
import thyyxxk.wxservice_server.entity.wxapi.WxPayOrder;
|
|
import thyyxxk.wxservice_server.entity.wxapi.WxPayOrder;
|
|
import thyyxxk.wxservice_server.entity.wxapi.WxPyQrcdPrm;
|
|
import thyyxxk.wxservice_server.entity.wxapi.WxPyQrcdPrm;
|
|
import thyyxxk.wxservice_server.factory.thmz.model.NongPayRequest;
|
|
import thyyxxk.wxservice_server.factory.thmz.model.NongPayRequest;
|
|
|
|
+import thyyxxk.wxservice_server.factory.thmz.model.NongPayRequestHisCount;
|
|
import thyyxxk.wxservice_server.factory.thmz.model.QueryReceiptRequest;
|
|
import thyyxxk.wxservice_server.factory.thmz.model.QueryReceiptRequest;
|
|
import thyyxxk.wxservice_server.factory.wechatpay.WeChatPayService;
|
|
import thyyxxk.wxservice_server.factory.wechatpay.WeChatPayService;
|
|
import thyyxxk.wxservice_server.factory.wechatpay.model.NativePayResponse;
|
|
import thyyxxk.wxservice_server.factory.wechatpay.model.NativePayResponse;
|
|
@@ -187,7 +188,26 @@ public class WxApiService {
|
|
NongPayResponse response = template.postForObject(url, nongPayRequest, NongPayResponse.class);
|
|
NongPayResponse response = template.postForObject(url, nongPayRequest, NongPayResponse.class);
|
|
System.out.println("response"+JSONObject.toJSONString(response.getData()));
|
|
System.out.println("response"+JSONObject.toJSONString(response.getData()));
|
|
return ResultVoUtil.success(response);
|
|
return ResultVoUtil.success(response);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public NongPayResponse queryNongOrderPayOrderHisCount(NongPayRequestHisCount nongPayRequestHisCount) {
|
|
|
|
+ System.out.println("queryNongOrderPayOrder");
|
|
|
|
+ String url = nongApi + "NongPay/unifiedOrder";
|
|
|
|
|
|
|
|
+ String notifyUrl = "https://huaihai-tech.com/mzHisPay/thmz/NongPay/notifyCodeImg"
|
|
|
|
+ .trim()
|
|
|
|
+ .replaceAll("\\s+", "");
|
|
|
|
+ nongPayRequestHisCount.setNotifyUrl(notifyUrl);
|
|
|
|
+
|
|
|
|
+// JSONObject extParam = new JSONObject();
|
|
|
|
+// extParam.put("patientId", body.get("patientId"));
|
|
|
|
+// extParam.put("times", body.get("times"));
|
|
|
|
+// extParam.put("amount", amount);
|
|
|
|
+// body.put("extParam", JSONObject.toJSONString(extParam));
|
|
|
|
+
|
|
|
|
+ NongPayResponse response = template.postForObject(url, nongPayRequestHisCount, NongPayResponse.class);
|
|
|
|
+ System.out.println("response"+JSONObject.toJSONString(response.getData()));
|
|
|
|
+ return response;
|
|
}
|
|
}
|
|
|
|
|
|
public String queryOrderState(String tradeNo) {
|
|
public String queryOrderState(String tradeNo) {
|