diff --git a/xhpc-modules/xhpc-payment/src/main/java/com/xhpc/payment/controller/WxPaymentController.java b/xhpc-modules/xhpc-payment/src/main/java/com/xhpc/payment/controller/WxPaymentController.java index c1af930b..6b73492f 100644 --- a/xhpc-modules/xhpc-payment/src/main/java/com/xhpc/payment/controller/WxPaymentController.java +++ b/xhpc-modules/xhpc-payment/src/main/java/com/xhpc/payment/controller/WxPaymentController.java @@ -400,7 +400,7 @@ public class WxPaymentController { //充电中 postRefreshBalance(money, serialMumber); } - if(UserTypeUtil.USER_TYPE.equals(xhpcRechargeOrder.getSource())){ + if(UserTypeUtil.USER_TYPE.equals(source)){ //增加用户余额 XhpcAppUser xhpcAppUser = new XhpcAppUser(); xhpcAppUser.setAppUserId(xhpcRechargeOrder.getUserId()); diff --git a/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/service/impl/XhpcCommonServiceImpl.java b/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/service/impl/XhpcCommonServiceImpl.java index f97db2cf..622061a0 100644 --- a/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/service/impl/XhpcCommonServiceImpl.java +++ b/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/service/impl/XhpcCommonServiceImpl.java @@ -53,7 +53,7 @@ public class XhpcCommonServiceImpl implements IXhpcCommonService { if(communityUser!=null){ if(UserTypeUtil.INSERT_BALANCE.equals(status)){ XhpcCommunityPersonnel xhpcCommunityPersonnel=new XhpcCommunityPersonnel(); - xhpcCommunityPersonnel.setCommunityPersonnelId(Long.valueOf(communityUser.get("communityUser").toString())); + xhpcCommunityPersonnel.setCommunityPersonnelId(Long.valueOf(communityUser.get("appUserId").toString())); xhpcCommunityPersonnel.setRechargeMoney(money); xhpcCommunityPersonnel.setRemark(remark); xhpcCommunityPersonnel.setRechargeType(type); @@ -67,7 +67,7 @@ public class XhpcCommonServiceImpl implements IXhpcCommonService { if(customersUser!=null){ if(UserTypeUtil.INSERT_BALANCE.equals(status)){ XhpcCustomersPersonnel xhpcCustomersPersonnel =new XhpcCustomersPersonnel(); - xhpcCustomersPersonnel.setCustomersPersonnelId(Long.valueOf(customersUser.get("communityUser").toString())); + xhpcCustomersPersonnel.setCustomersPersonnelId(Long.valueOf(customersUser.get("appUserId").toString())); xhpcCustomersPersonnel.setRechargeMoney(money); xhpcCustomersPersonnel.setRemark(remark); xhpcCustomersPersonnel.setRechargeType(type);