ソースを参照

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP20_WEB_GLOBAL

li.shaoyi 2 年 前
コミット
8aae83a3f3
1 ファイル変更4 行追加3 行削除
  1. 4 3
      src/business/bank/index.ts

+ 4 - 3
src/business/bank/index.ts

@@ -7,6 +7,7 @@ import moment from "moment"
 
 const accountStore = useAccountStore()
 const loginStore = useLoginStore()
+const useStore = useUserStore()
 
 // 提现请求
 export function useDoWithdraw() {
@@ -22,7 +23,7 @@ export function useDoWithdraw() {
     })
 
     const formData = reactive<Partial<Proto.t2bBankWithdrawReq>>({
-        AccountType: 0,
+        AccountType: useStore.userInfo?.userinfotype,
         AppDateTime: moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
     })
 
@@ -154,11 +155,11 @@ export function useDoBankSign() {
 
     /// 数据
     const formData = reactive<Partial<Proto.t2bBankSignReq>>({
-        AccountType: 1,
+        AccountType: useStore.userInfo?.userinfotype,
         IsForce: 0,
         AgentCertType: 0,
         BankCardType: 0,
-        BankAccountType: 1,
+        BankAccountType: useStore.userInfo?.userinfotype,
         AccountCode: accountStore.currentAccountId.toString(),
         CertID: decryptAES(userInfo?.cardnum ?? ''),
         CertType: userInfo?.cardtypeid.toString(),