Commit e025b52ff4b29a44aae486d812326b9163ebce93

Authored by 痴货
1 parent 3b9548aa

微信转账未完成

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 19 BANK(2, "银行卡"),
20 20 WECHAT(3, "微信"),
21 21 ALIPAY(4, "支付宝"),
  22 + ALIPAY_SMALL(5, "微信零钱"),
22 23 ;
23 24  
24 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 98 // 3.1 通过时佣金转余额
99 99 if (BrokerageWithdrawTypeEnum.WALLET.getType().equals(withdraw.getType())) {
100 100 // todo 疯狂:
101   - }else if (BrokerageWithdrawTypeEnum.WECHAT.getType().equals(withdraw.getType())){
  101 + }else if (BrokerageWithdrawTypeEnum.ALIPAY_SMALL.getType().equals(withdraw.getType())){
102 102 //获取openid
103 103 SocialUserRespDTO socialUser = socialUserApi.getSocialUserByUserId(UserTypeEnum.MEMBER.getValue(), withdraw.getUserId(), SocialTypeEnum.WECHAT_MINI_APP.getType());
104 104 // 微信提现
... ...