From 7becc97c5bfdd827b9a999c26746bb8e8bc3e25c Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 13 三月 2021 16:23:36 +0800
Subject: [PATCH] 后台会员/会员订单查询,搜索结果高清标签添加,

---
 src/main/java/com/yeshi/buwan/controller/api/VIPController.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/controller/api/VIPController.java b/src/main/java/com/yeshi/buwan/controller/api/VIPController.java
index c912480..88c03e2 100644
--- a/src/main/java/com/yeshi/buwan/controller/api/VIPController.java
+++ b/src/main/java/com/yeshi/buwan/controller/api/VIPController.java
@@ -116,9 +116,10 @@
         VIPOrderRecord record = new VIPOrderRecord();
         record.setUid(loginUid);
         record.setType(vipPrice.getType());
-        record.setMoney(vipPrice.getPrice());
+        record.setMoney(vipPrice.getActualPrice());
         record.setPayWay(payWay);
         record.setState(VIPOrderRecord.STATE_NOT_PAY);
+        record.setIpInfo(IPUtil.getRemotIP(request) + ":" + IPUtil.getRemotePort(request));
         try {
             vipService.addVIPRecord(record);
         } catch (VIPException e) {
@@ -146,7 +147,7 @@
                     .PAY_WAY_WX: {
                 //鐢熸垚寰俊鏀粯璁㈠崟
                 try {
-                    String payUrl = VipUtil.createWXOrder(record.getId(), ip, orderNo, vipPrice.getPrice(), "褰辫澶у叏VIP-" + vipPrice.getType().getName());
+                    String payUrl = VipUtil.createWXOrder(record.getId(), ip, orderNo, vipPrice.getActualPrice(), "褰辫澶у叏VIP-" + vipPrice.getType().getName());
                     org.json.JSONObject data = new org.json.JSONObject();
                     data.put("payUrl", payUrl);
                     data.put("payWay", payWay);

--
Gitblit v1.8.0