|
|
@@ -147,8 +147,8 @@ public class ZfbPayController extends ZfbPayUtils {
|
|
|
result = alipayClient.pageExecute(alipayRequest).getBody();
|
|
|
String bottom = "</body></html>";
|
|
|
//购买次数信息入库
|
|
|
- BuyOfferNum buyOfferNum = new BuyOfferNum().setUuid(uuid).setOfferNum(offerNum).setCode((String) userMap.get("code"));
|
|
|
- zfbPayService.addBuyOfferNum(buyOfferNum); //充值
|
|
|
+// BuyOfferNum buyOfferNum = new BuyOfferNum().setUuid(uuid).setOfferNum(offerNum).setCode((String) userMap.get("code"));
|
|
|
+// zfbPayService.addBuyOfferNum(buyOfferNum); //充值
|
|
|
return head + result + bottom;
|
|
|
}
|
|
|
|
|
|
@@ -200,8 +200,8 @@ public class ZfbPayController extends ZfbPayUtils {
|
|
|
result = alipayClient.pageExecute(alipayRequest).getBody();
|
|
|
String bottom = "</body></html>";
|
|
|
//充值信息入库
|
|
|
- ZFBPay wxPay = new ZFBPay().setCode((String) userMap.get("code")).setUuid(uuid);
|
|
|
- zfbPayService.buySupplierBalance(wxPay); //充值
|
|
|
+// ZFBPay wxPay = new ZFBPay().setCode((String) userMap.get("code")).setUuid(uuid);
|
|
|
+// zfbPayService.buySupplierBalance(wxPay); //充值
|
|
|
return head + result + bottom;
|
|
|
}
|
|
|
|
|
|
@@ -267,6 +267,9 @@ public class ZfbPayController extends ZfbPayUtils {
|
|
|
.setUuid((params.get("body")).split(",")[1])
|
|
|
.setTotalFee(params.get("total_amount"))
|
|
|
.setPayType("支付宝支付");
|
|
|
+ //充值信息入库
|
|
|
+ ZFBPay wxPayBala = new ZFBPay().setCode((params.get("body")).split(",")[2]).setUuid(uuid).setTotalFee(params.get("total_amount"));
|
|
|
+ zfbPayService.buySupplierBalance(wxPayBala); //充值记录录入
|
|
|
zfbPayService.updateBuySupplier(buySupplier); //充值
|
|
|
} else if((params.get("body")).indexOf("gysOfferNum") != -1){ //报价单次数购买
|
|
|
BuyOfferNum buyOfferNum = new BuyOfferNum()
|
|
|
@@ -275,6 +278,9 @@ public class ZfbPayController extends ZfbPayUtils {
|
|
|
.setPayAmount(params.get("total_amount"))
|
|
|
.setOfferNum((params.get("body")).split(",")[3])
|
|
|
.setPayType("支付宝支付");
|
|
|
+ //购买次数信息入库
|
|
|
+ BuyOfferNum buyOfferNumAdd = new BuyOfferNum().setUuid(uuid).setOfferNum((params.get("body")).split(",")[3]).setCode((params.get("body")).split(",")[2]);
|
|
|
+ zfbPayService.addBuyOfferNum(buyOfferNumAdd); //充值记录录入
|
|
|
zfbPayService.updateBuyOfferNum(buyOfferNum);//购买次数
|
|
|
} else { //报价单购买
|
|
|
zfbPayService.payUpdate(wxPay);
|