|
|
@@ -190,20 +190,23 @@ public class WxPayAppController extends WxPayUtils {
|
|
|
.setTradeType((String)packageParams.get("trade_type"))
|
|
|
.setPrepayId((String)packageParams.get("transaction_id"))
|
|
|
.setOpenId((String)packageParams.get("openid"))
|
|
|
- .setTimeEnd((String)packageParams.get("time_end"));
|
|
|
+ .setTimeEnd((String)packageParams.get("time_end"))
|
|
|
+ .setPayType("微信支付");
|
|
|
//如果自定义参数是gysTopUp则代表的是供应商充值余额
|
|
|
if(((String) packageParams.get("attach")).indexOf("gysTopUp") != -1){
|
|
|
WxPay buySupplier = new WxPay()
|
|
|
.setCode(((String) packageParams.get("attach")).split(",")[2])
|
|
|
.setUuid(((String) packageParams.get("attach")).split(",")[1])
|
|
|
- .setTotalFee((float)Integer.parseInt((String)packageParams.get("total_fee")) / 100 + "");
|
|
|
+ .setTotalFee((float)Integer.parseInt((String)packageParams.get("total_fee")) / 100 + "")
|
|
|
+ .setPayType("微信支付");
|
|
|
wxPayService.updateBuySupplier(buySupplier); //充值
|
|
|
} else if(((String) packageParams.get("attach")).indexOf("gysOfferNum") != -1){ //报价单次数购买
|
|
|
BuyOfferNum buyOfferNum = new BuyOfferNum()
|
|
|
.setCode(((String) packageParams.get("attach")).split(",")[2])
|
|
|
.setUuid(((String) packageParams.get("attach")).split(",")[1])
|
|
|
.setPayAmount((float)Integer.parseInt((String)packageParams.get("total_fee")) / 100 + "")
|
|
|
- .setOfferNum(((String) packageParams.get("attach")).split(",")[3]);
|
|
|
+ .setOfferNum(((String) packageParams.get("attach")).split(",")[3])
|
|
|
+ .setPayType("微信支付");
|
|
|
wxPayService.updateBuyOfferNum(buyOfferNum);//购买次数
|
|
|
} else { //报价单购买
|
|
|
wxPayService.payUpdate(wxPay);
|