Commit e025b52ff4b29a44aae486d812326b9163ebce93
1 parent
3b9548aa
微信转账未完成
Showing
2 changed files
with
2 additions
and
1 deletions
yudao-module-mall/yudao-module-trade-api/src/main/java/cn/iocoder/yudao/module/trade/enums/brokerage/BrokerageWithdrawTypeEnum.java
| @@ -19,6 +19,7 @@ public enum BrokerageWithdrawTypeEnum implements IntArrayValuable { | @@ -19,6 +19,7 @@ public enum BrokerageWithdrawTypeEnum implements IntArrayValuable { | ||
| 19 | BANK(2, "银行卡"), | 19 | BANK(2, "银行卡"), |
| 20 | WECHAT(3, "微信"), | 20 | WECHAT(3, "微信"), |
| 21 | ALIPAY(4, "支付宝"), | 21 | ALIPAY(4, "支付宝"), |
| 22 | + ALIPAY_SMALL(5, "微信零钱"), | ||
| 22 | ; | 23 | ; |
| 23 | 24 | ||
| 24 | public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BrokerageWithdrawTypeEnum::getType).toArray(); | 25 | public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BrokerageWithdrawTypeEnum::getType).toArray(); |
yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/brokerage/BrokerageWithdrawServiceImpl.java
| @@ -98,7 +98,7 @@ public class BrokerageWithdrawServiceImpl implements BrokerageWithdrawService { | @@ -98,7 +98,7 @@ public class BrokerageWithdrawServiceImpl implements BrokerageWithdrawService { | ||
| 98 | // 3.1 通过时佣金转余额 | 98 | // 3.1 通过时佣金转余额 |
| 99 | if (BrokerageWithdrawTypeEnum.WALLET.getType().equals(withdraw.getType())) { | 99 | if (BrokerageWithdrawTypeEnum.WALLET.getType().equals(withdraw.getType())) { |
| 100 | // todo 疯狂: | 100 | // todo 疯狂: |
| 101 | - }else if (BrokerageWithdrawTypeEnum.WECHAT.getType().equals(withdraw.getType())){ | 101 | + }else if (BrokerageWithdrawTypeEnum.ALIPAY_SMALL.getType().equals(withdraw.getType())){ |
| 102 | //获取openid | 102 | //获取openid |
| 103 | SocialUserRespDTO socialUser = socialUserApi.getSocialUserByUserId(UserTypeEnum.MEMBER.getValue(), withdraw.getUserId(), SocialTypeEnum.WECHAT_MINI_APP.getType()); | 103 | SocialUserRespDTO socialUser = socialUserApi.getSocialUserByUserId(UserTypeEnum.MEMBER.getValue(), withdraw.getUserId(), SocialTypeEnum.WECHAT_MINI_APP.getType()); |
| 104 | // 微信提现 | 104 | // 微信提现 |