Преглед на файлове

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(),