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