Ver código fonte

充值流程

wujiefeng 1 ano atrás
pai
commit
247e4ceb54

+ 0 - 3
PaymentServer/src/main/java/com/zhongshu/payment/server/core/service/RechargeService.java

@@ -72,7 +72,6 @@ public class RechargeService {
 
     /** 创建充值订单 */
     public Object create(RechargeParam param){
-        String userId = authHelper.getCurrentUser().getUser();
         Wallet userWallet = walletDao.findTop1ById(param.getWalletId());
         //判断钱包是否初始化
         if (userWallet==null){
@@ -103,8 +102,6 @@ public class RechargeService {
 
     /** 下单 */
     public Object order(OrderParam param){
-        String userId = authHelper.getCurrentUser().getUser();
-
         RechargeRecord record = rechargeRecordDao.findByOutTradeNo(param.getOutTradeNo());
         if (record==null){
             return ResultContent.buildFail("充值订单:"+param.getOutTradeNo()+"不存在");

+ 0 - 1
PaymentServer/src/main/java/com/zhongshu/payment/server/core/service/wallet/WalletService.java

@@ -33,7 +33,6 @@ public class WalletService {
 
     /** 获取钱包微信授权状态 */
     public Object getWeChatAuthState(String walletId){
-        String userId = authHelper.getCurrentUser().getUser();
         Wallet wallet = walletDao.findTop1ById(walletId);
         if (wallet==null){
             return ResultContent.buildFail("钱包未开通");