Skip to content

個人資料與提款(開發文檔)

最後更新:2026-04-10

📖 功能說明請參考 個人資料與提款


架構

相關檔案

ViewController — 個人資料(11 個)
檔案說明
.../UserInfo/C/BBPersonalInfoMainController.swift主頁
.../UserInfo/C/BBPersonalInfoController.swift個人資訊
.../UserInfo/C/BBPersonalInfoBankCardListController.swift銀行卡列表
.../UserInfo/C/BBPersonalInfoAddBankCardController.swift新增銀行卡
.../UserInfo/C/BBPersonalInfoAddressListController.swift地址列表
.../UserInfo/C/BBAddVirtualAddressViewController.swift新增虛擬地址
.../UserInfo/C/BBVirtualWithdrawViewController.swift虛擬提款
.../UserInfo/C/BBPersonalInfoChangePwdController.swift修改密碼
.../UserInfo/C/BBPersonalInfoBindCelEmailController.swift綁定手機/郵箱
.../UserInfo/C/BBPersonalInfoEntryAddressController.swift收款地址
.../UserInfo/C/BBScanViewController.swift掃碼

基礎路徑:BBSport/Tab/我的/Mine/

ViewController — 提款(3 個)
檔案說明
.../Withdraw/C/WithdrawViewController.swift法幣提款
.../Withdraw/C/WithdrawDetailViewController.swift提款詳情
.../Login_Register/登录注册/FindPassword/C/ChangePaawordViewController.swift忘記密碼-改密

基礎路徑:BBSport/Tab/我的/Mine/

ViewModel / Helper(7 個)
檔案說明
.../UserInfo/ViewModel/BBOnelineInputControllerViewModel.swift輸入 ViewModel
.../UserInfo/C/BBOnelineInputController.swift單行輸入
.../UserInfo/C/BBPersonalInfoBaseController.swift基底
.../Helpers/AipOcrSdk/BBBankCardIdentify.swift銀行卡 OCR 識別
.../Helpers/BBBankIconHelper.swift銀行 Icon
.../Helpers/BBWalletService.swift錢包服務
.../Helpers/PersonalInfoUIManager.swiftUI 管理

基礎路徑:BBSport/Tab/我的/Mine/

View — 個人資料(13 個)
檔案說明
.../UserInfo/V/BBAddBankCardPhotoView.swift銀行卡照片
.../UserInfo/V/BBAddressListCell.swift地址列表 Cell
.../UserInfo/V/BBAddressPicker.swift地址選擇器
.../UserInfo/V/BBBankCardListCell.swift銀行卡列表 Cell
.../UserInfo/V/BBChoiceSegmentView.swift選項切換
.../UserInfo/V/BBInputAutoField.swift自動輸入欄位
.../UserInfo/V/BBPersonEditView.swift個人編輯
.../UserInfo/V/BBPersonalInfoMainCell.swift主頁 Cell
.../UserInfo/V/BBSelectAffiliatedBankView.swift選擇開戶銀行
.../UserInfo/V/BBSendMsgCodeView.swift發送驗證碼
.../UserInfo/V/BBVirtualAddressCell.swift虛擬地址 Cell
.../UserInfo/V/BBVirtualAddressEmptyView.swift虛擬地址空狀態
.../UserInfo/V/BBVirtualAddressTableFooterView.swift虛擬地址 Footer

基礎路徑:BBSport/Tab/我的/Mine/

View — 虛擬幣 / 提款(23 個)
檔案說明
.../UserInfo/V/BBVirtualInputView.swift虛擬幣輸入
.../UserInfo/V/BBVirtualProtocolView.swift虛擬幣協議
.../Withdraw/C/WithdrawViewModel.swift提款 ViewModel
.../Withdraw/V/BodyView/BBWithdrawAccount.swift提款帳戶
.../Withdraw/V/BodyView/BankBody/WithdrawBankBodyView.swift銀行提款 Body
.../Withdraw/V/BodyView/ChooseAdress/WithdrawAddressListView.swift選擇地址列表
.../Withdraw/V/BodyView/ChooseBank/WithdrawBankCell.swift選擇銀行卡 Cell
.../Withdraw/V/BodyView/ChooseBank/WithdrawSelectBankCardView.swift選擇銀行卡
.../Withdraw/V/BodyView/ChooseBank/WithdrawSelectBankView.swift選擇銀行
.../Withdraw/V/BodyView/ContentView/WithdrawBodyView.swiftBody 容器
.../Withdraw/V/BodyView/DigitalBody/WithdrawDigitalBodyView.swift虛擬幣 Body
.../Withdraw/V/BodyView/DigitalBody/WithdrawDigitalChangeTypeView.swift切換幣種
.../Withdraw/V/BodyView/DigitalBody/WithdrawDigitalTypeButton.swift幣種按鈕
.../Withdraw/V/BodyView/SubView/AppointmentView.swift預約提款
.../Withdraw/V/BodyView/SubView/BankMaintenanceView.swift銀行維護
.../Withdraw/V/BodyView/SubView/InputAmountView.swift金額輸入
.../Withdraw/V/BodyView/SubView/WithdrawTipView.swift提款提示
.../Withdraw/V/BodyView/SubView/WithdrawTitleView.swift提款標題
.../Withdraw/V/BottomView/WithdrawBottomButtonsView.swift底部按鈕
.../Withdraw/V/BottomView/WithdrawBottomView.swift底部區域
.../Withdraw/V/BottomView/WithdrawC2CAmountView.swiftC2C 金額
.../Withdraw/V/BottomView/WithdrawMoneysView.swift提款金額列表
.../Withdraw/V/BottomView/WithdrawProgressView.swift提款進度

基礎路徑:BBSport/Tab/我的/Mine/

View — 提款詳情(9 個)
檔案說明
.../Withdraw/V/BottomView/WithdrawTypeChannelView.swift通道限額
.../Withdraw/V/Detail/WithdrawDetailC2CSplitOrderCell/WithdrawDetailC2CSplitOrderCell.swiftC2C 拆單 Cell
.../Withdraw/V/Detail/WithdrawDetailC2CSplitOrderCell/WithdrawDetailC2CSplitOrderCellStatusView.swiftC2C 拆單狀態
.../Withdraw/V/Detail/WithdrawDetailOrderSplitCell.swift拆單詳情 Cell
.../Withdraw/V/Detail/WithdrawDetailTBHeaderView.swift詳情 Header
.../Withdraw/V/Detail/WithdrawDetialLeftRightLabelView.swift左右 Label
.../Withdraw/V/Detail/WithdrawMoneyDetailView.swift金額詳情
.../Withdraw/V/Detail/WithdrawStatusEnums.swift狀態枚舉
.../Withdraw/V/WithdrawDigitalGuideView.swift虛擬幣引導

基礎路徑:BBSport/Tab/我的/Mine/

Model(10 個)
檔案說明
.../Withdraw/M/WithdrawInfoModel.swift提款資訊
.../Withdraw/M/WithdrawType.swift提款類型
.../Withdraw/M/WithdrawDigitalType.swift虛擬幣類型
.../Withdraw/M/WithdrawLastStatusModel.swift最新狀態
.../Withdraw/M/WithdrawModel.swift提款主模型
.../Withdraw/M/WithdrawStatusInput.swift狀態輸入
.../Withdraw/M/AppointmentInfoModel.swift預約提款
.../Withdraw/M/WithdrawC2CAmountType.swiftC2C 金額類型
.../Withdraw/M/WithdrawDigitalAddressModel.swift虛擬幣地址
.../Withdraw/V/NameView/WithdrawNameView.swift提款姓名

基礎路徑:BBSport/Tab/我的/Mine/

API — 個人資料(16 個)
檔案說明
STAPI+BindEmailRequest.swift綁定郵箱
STAPI+BindMobileRequest.swift綁定手機
STAPI+ChangePasswordRequest.swift修改密碼
STAPI+NickNameDetailRequest.swift暱稱詳情
STAPI+UpdateUserInfoRequest.swift更新用戶資訊
STAPI+UserCenterAvatarRequest.swift用戶頭像
STAPI+UserSecurityInfoRequest.swift安全資訊查詢
STAPI+UpdateSecurityInfoRequest.swift更新安全資訊
STAPI+UserValidCodeRequest.swift驗證碼
STAPI+ResetUserValidCodeRequest.swift重置驗證碼
STAPI+InviteCodeRequest.swift邀請碼
STAPI+ProfileInfoRequest.swift個人主頁資訊
STAPI+ProfileBetRequest.swift個人投注紀錄
STAPI+ProfileFollowExpertRequest.swift關注專家
STAPI+ProfileFollowOthersRequest.swift關注他人
STAPI+ProfileLikeBetRequest.swift按讚投注

基礎路徑:BBSport/API/STAPI/

API — 地址管理(17 個)
檔案說明
.../Address/USDT/STAPI+AddWithdrawalUSDTAddressRequest.swift新增 USDT 地址
.../Address/USDT/STAPI+DeleteWithdrawalUSDTAddressRequest.swift刪除 USDT 地址
.../Address/USDT/STAPI+WithdrawalUSDTProtocolAddressRequest.swiftUSDT 協議地址
.../Address/EB/STAPI+AddWithdrawalEBAddressRequest.swift新增 EB 地址
.../Address/EB/STAPI+DeleteWithdrawalEBAddressRequest.swift刪除 EB 地址
.../Address/TB/STAPI+AddWithdrawalTBAddressRequest.swift新增 TB 地址
.../Address/TB/STAPI+DeleteWithdrawalTBAddressRequest.swift刪除 TB 地址
.../Address/TB/STAPI+WithdrawalTBProtocolAddressRequest.swiftTB 協議地址
.../Address/TBU/STAPI+AddWithdrawalTBUAddressRequest.swift新增 TBU 地址
.../Address/TBU/STAPI+DeleteWithdrawalTBUAddressRequest.swift刪除 TBU 地址
.../Address/TBU/WithdrawalTBUProtocolAddressRequest.swiftTBU 協議地址
.../Address/Receive/STAPI+UserReceiveAddressRequest.swift收貨地址列表
.../Address/Receive/STAPI+AddReceiveAddressRequest.swift新增收貨地址
.../Address/Receive/STAPI+DeleteReceiveAddressRequest.swift刪除收貨地址
.../Address/Receive/STAPI+ProvinceRequest.swift省份列表
.../Address/Receive/STAPI+UpdateDefaultReceiveAddressRequest.swift設定預設收貨地址
.../Address/Receive/STAPI+UpdateReceiveAddressRequest.swift更新收貨地址

基礎路徑:BBSport/API/STAPI/User/

API — 驗證碼(12 個)
檔案說明
.../VerifyCode/BankCard/STAPI+ApplyBankCardVerifyCodeRequest.swift銀行卡綁定驗證碼-申請
.../VerifyCode/BankCard/STAPI+BindBankCardVerifyCodeRequest.swift銀行卡綁定驗證碼
.../VerifyCode/BankCard/STAPI+DeleteBankCardVerifyCodeRequest.swift銀行卡刪除驗證碼
.../VerifyCode/EB/STAPI+AddWithdrawalEBAddressVerifyCodeRequest.swiftEB 新增地址驗證碼
.../VerifyCode/EB/STAPI+DeleteWithdrawalEBAddressVerifyCodeRequest.swiftEB 刪除地址驗證碼
.../VerifyCode/STAPI+BindEmailVerifyCodeRequest.swift綁定郵箱驗證碼
.../VerifyCode/STAPI+BindMobileVerifyCodeRequest.swift綁定手機驗證碼
.../VerifyCode/STAPI+WithdrawalSecurityVerifyCodeRequest.swift提款安全驗證碼
.../VerifyCode/STAPI+WithdrawalVerifyCodeRequest.swift提款驗證碼
.../VerifyCode/TB/STAPI+AddWithdrawalTBAddressVerifyCodeRequest.swiftTB 新增地址驗證碼
.../VerifyCode/TBU/STAPI+AddWithdrawalTBUAddressVerifyCodeRequest.swiftTBU 新增地址驗證碼
.../VerifyCode/USDT/STAPI+AddWithdrawalUSDTAddressVerifyCodeRequest.swiftUSDT 新增地址驗證碼

基礎路徑:BBSport/API/STAPI/User/

API — 其他(10 個)
檔案說明
.../User/Profile/STAPI+ProfileViewingPermissionRequest.swift查看權限
.../User/Profile/STAPI+StopNotifyingRequest.swift停止通知
.../User/Profile/FansPage/STAPI+FansPageFollowRequest.swift粉絲頁關注
.../User/Profile/FansPage/STAPI+FansPageSubscriptionRequest.swift粉絲頁訂閱
.../User/Title/STAPI+AllMemberTitleRequest.swift全部稱號
.../User/Title/STAPI+SetUserTitleInfoRequest.swift設定稱號
.../User/Title/STAPI+UserTitleListInfoRequest.swift稱號列表
.../User/Title/STAPI+UserTitleObtainInfoRequest.swift稱號取得資訊
.../User/Title/STAPI+UserTitleWallInfoRequest.swift稱號牆資訊
.../User/STAPI+VIPProgressRequest.swiftVIP 進度

基礎路徑:BBSport/API/STAPI/

Helper — OCR / 其他(13 個)
檔案說明
.../Helpers/AipOcrSdk/Category/AipDisplayLink.mOCR - DisplayLink
.../Helpers/AipOcrSdk/Category/IOSpeScaleLayoutButton.mOCR - ScaleButton
.../Helpers/AipOcrSdk/Category/IOSpeScaleLayoutConstraint.mOCR - ScaleConstraint
.../Helpers/AipOcrSdk/Category/IOSpeScaleLayoutLabel.mOCR - ScaleLabel
.../Helpers/AipOcrSdk/Category/UIImage+AipCameraAddition.mOCR - UIImage
.../Helpers/AipOcrSdk/View/AipCameraPreviewView.mOCR - PreviewView
.../Helpers/AipOcrSdk/View/AipCutImageView.mOCR - CutImageView
.../Helpers/AipOcrSdk/View/AipImageView.mOCR - ImageView
.../Helpers/AipOcrSdk/ViewController/AipCameraController.mOCR - CameraController
.../Helpers/AipOcrSdk/ViewController/AipCaptureCardVC.mOCR - CaptureCardVC
.../Helpers/AipOcrSdk/ViewController/AipGeneralVC.mOCR - GeneralVC
.../Helpers/AipOcrSdk/ViewController/AipLoaderBaseVC.mOCR - LoaderBaseVC
.../Helpers/AipOcrSdk/ViewController/AipNavigationController.mOCR - NavigationController

基礎路徑:BBSport/Tab/我的/Mine/


API

查詢類


取得安全資訊

POST api/forehead/user/security/load/info — JSON — STAPI.UserSecurityInfoRequest

無參數,靠 Header token/uid 認證。

Response:

欄位型別說明
mobileString手機號(自動補 +)
withdrawValInt提款驗證是否已完成(>0 為已完成)
cardCountInt已綁銀行卡數量
emailString郵箱
reallyNameString真實姓名
usdtCountIntUSDT 地址數量
ebCountIntEB 地址數量

取得已綁定銀行卡列表

POST api/forehead/fund/userbankcard/list — urlForm — STAPI.UserBankCardRequest

無參數,靠 Header token/uid 認證。

Response:

欄位型別說明
nameString持卡人姓名
cardList[BankCard]已綁定的銀行卡列表

BankCard 欄位:bankId(Int), bankName(String), bankLogo(String), cardId(Int), cardNo(String), status(Int, 2=人工審核中), canDelete(Bool)


取得支援銀行列表

POST api/forehead/fund/userbankcard/supportBankList — urlForm — STAPI.SupportBankRequest

無參數,靠 Header token/uid 認證。

Response: data: [Bank],每筆含 bankId(Int), bankName(String), bankLogo(String)。


USDT 地址查詢

POST api/forehead/fund/user/usdt/list — urlForm — STAPI

無參數,靠 Header token/uid 認證。

Response: data: [AddressInfo]

欄位型別說明
idInt地址 ID
nickNameString地址暱稱
addressString錢包地址
protocolString協議名稱(如 TRC20)
statusInt狀態
userIdInt用戶 ID
userNameString用戶名
createDateDouble建立時間

USDT 協議地址查詢

POST api/forehead/fund/user/usdt/protocol/list — urlForm — STAPI

無參數,靠 Header token/uid 認證。

Response: data: [GeneralCryptoProtocol]

欄位型別說明
protocolString協議名稱(如 TRC20, ERC20)
messageString協議說明訊息

EB / TB / TBU 地址查詢

  • EB:POST api/forehead/fund/user/eb/list
  • TB:POST api/forehead/fund/user/tb/list
  • TBU:POST api/forehead/fund/user/tbu/list

無參數,靠 Header token/uid 認證。Response:USDT 地址查詢


取得省份列表

POST api/forehead/system/area/load — urlForm — STAPI.ProvinceRequest

無參數,靠 Header token/uid 認證。

Response: data: [Province],含省份 ID 和名稱。


取得收款地址

POST api/forehead/user/setting/address/list — urlForm — STAPI.UserReceiveAddressRequest

無參數,靠 Header token/uid 認證。

Response: data: [Address]

欄位型別說明
idInt收貨地址 ID
nameString收件人姓名
mobileString手機號
mobileAreaString手機區碼
provinceString省份名稱
provinceIdInt省份 ID
cityString城市名稱
cityIdInt城市 ID
areaString區域名稱
areaIdInt區域 ID
streetString街道/詳細地址
statusInt是否為預設地址(>0 為預設)

計算屬性:pcaAddress(省市區帶空格)、whereAddress(完整地址不帶空格)


加密貨幣排序

POST api/forehead/fund/user/tb/digiCoin/sort — urlForm — STAPI.WithdrawalCryptoSortRequest

無參數,靠 Header token/uid 認證。

Response: data: [CryptoSort],每筆含 coin(String), sort(Int)。


查詢提款匯率

POST api/forehead/fund/withdraw/rate — urlForm — STAPI.WithdrawRateRequest

參數型別必填說明
coinstring幣種代碼(如 "USDT", "EB", "TB", "TBU"

Response: dataDouble,即時匯率。


取得最新提款狀態

POST api/forehead/fund/withdraw/last/status — urlForm — STAPI.WithdrawLastStatusRequest

無參數,靠 Header token/uid 認證。

Response:

欄位型別說明
bankCards[WithdrawBankModel]用戶銀行卡列表
telephoneString綁定的手機號
withdraws[WithdrawModel]提款記錄列表
receivedMoneyBool確認收款是否已按過
isC2CSplitWithdrawOpenBoolC2C 拆單功能
totalFeeDoubleC2C 拆單手續費總合
currentStepInt進度(1=申請, 2=等待付款, 3=待確認到帳, 4=完成)
activityMessageString超時補償文案

取得預約提款資訊

POST api/forehead/fund/withdraw/reserve/config/get — urlForm — STAPI.ReserveInfoRequest

無參數,靠 Header token/uid 認證。

Response:

欄位型別說明
c2cReserveWithdrawOpenInt專屬提款預約(1=開啟)
c2cReserveWithdrawDuration[AppointmentModel]專屬預約時段
normalReserveWithdrawOpenInt普通提款預約
normalReserveWithdrawDuration[AppointmentModel]普通預約時段
usdtReserveWithdrawOpenIntUSDT 提款預約
usdtReserveWithdrawDuration[AppointmentModel]USDT 預約時段

AppointmentModel:durationId(Int), startDuration(Double), endDuration(Double), appoinmentRate(String), isReserve(Bool)


寫入類 — 銀行卡


新增銀行卡

POST api/forehead/fund/userbankcard/v2/bindcard — urlForm — STAPI.AddBankCardRequest

參數型別必填說明
namestring真實姓名
bankIdstring銀行 ID
cardNostring銀行卡號
codestring驗證碼

Response: 無 data,僅含 code 和 message。


人工新增銀行卡

POST api/forehead/fund/userbankcard/v2/apply/bindcard — urlForm — STAPI

參數型別必填說明
namestring真實姓名
bankIdstring銀行 ID
cardNostring銀行卡號
codestring驗證碼
imagePathstring銀行卡照片路徑

Response: 無 data,僅含 code 和 message。


刪除銀行卡

POST api/forehead/fund/userbankcard/delete — urlForm — STAPI.DeleteBankCardRequest

參數型別必填說明
cardIdint銀行卡 ID
codestring驗證碼

Response: 無 data,僅含 code 和 message。


綁銀行卡驗證碼

POST api/forehead/user/setting/binding/bankcard/get/code/v2 — urlForm — STAPI

參數型別必填說明
typestring固定值 "card_bind"
lotNumber / captchaOutput / passToken / genTimestring極驗四件組

Response: 無 data,僅含 code 和 message。


人工綁卡驗證碼

POST api/forehead/user/setting/apply/binding/bankcard/get/code/v2 — urlForm — STAPI

參數型別必填說明
typestring固定值 "apply_card_bind"
lotNumber / captchaOutput / passToken / genTimestring極驗四件組

Response: 無 data,僅含 code 和 message。


刪除銀行卡驗證碼

POST api/forehead/user/setting/delete/bankcard/get/code/v2 — urlForm — STAPI

參數型別必填說明
typestring固定值 "card_del"
lotNumber / captchaOutput / passToken / genTimestring極驗四件組

Response: 無 data,僅含 code 和 message。


寫入類 — 加密貨幣地址


新增 USDT 地址

POST api/forehead/fund/user/usdt/add — urlForm — STAPI

參數型別必填說明
nickNamestring地址暱稱
protocolstring協議名稱(如 "TRC20", "ERC20"
addressstring錢包地址
codestring驗證碼

Response: 無 data,僅含 code 和 message。


新增 EB 地址

POST api/forehead/fund/user/eb/submit — urlForm — STAPI

參數型別必填說明
nickNamestring地址暱稱
addressstring錢包地址
codestring驗證碼

Response: 無 data,僅含 code 和 message。


新增 TB / TBU 地址

  • TB:POST api/forehead/fund/user/tb/add
  • TBU:POST api/forehead/fund/user/tbu/add
參數型別必填說明
nickNamestring地址暱稱
protocolstring協議名稱
addressstring錢包地址
codestring驗證碼

Response: 無 data,僅含 code 和 message。


刪除 USDT 地址

POST api/forehead/fund/user/usdt/del — urlForm — STAPI

參數型別必填說明
idint地址 ID
codestring驗證碼

Response: 無 data,僅含 code 和 message。


刪除 EB 地址

POST api/forehead/fund/user/eb/delete — urlForm — STAPI

Request:刪除 USDT 地址

Response: 無 data,僅含 code 和 message。


新增地址驗證碼

  • USDT:POST api/forehead/user/setting/binding/usdt/address/get/code/v2(type="add_usdt_address"
  • EB/TB:POST api/forehead/user/setting/binding/general/get/code(type 依幣種,EB bindType=4)
參數型別必填說明
typestring依幣種對應的 type 值
lotNumber / captchaOutput / passToken / genTimestring極驗四件組

Response: 無 data,僅含 code 和 message。


寫入類 — 密碼


修改密碼

POST api/forehead/user/setting/submit/reset/password — urlForm — STAPI.ChangePasswordRequest

參數型別必填說明
oldPwdstring原密碼
newPwdstring新密碼

Response: 無 data,僅含 code 和 message。


寫入類 — 綁定手機/郵箱


綁定手機號

POST api/forehead/user/setting/submit/binding/mobile — urlForm — STAPI.BindMobileRequest

參數型別必填說明
mobilestring手機號碼
telAreastring國際區碼
typestring固定值 "mobile_bind"
codestring驗證碼

Response: 無 data,僅含 code 和 message。


綁定郵箱

POST api/forehead/user/setting/submit/binding/email — urlForm — STAPI.BindEmailRequest

參數型別必填說明
emailstring郵箱地址
typestring固定值 "email_bind"
codestring驗證碼

Response: 無 data,僅含 code 和 message。


綁定手機驗證碼

POST api/forehead/user/setting/binding/mobile/get/code/v2 — urlForm — STAPI

參數型別必填說明
mobilestring手機號碼
telAreastring國際區碼
lotNumber / captchaOutput / passToken / genTimestring極驗四件組

Response: 無 data,僅含 code 和 message。


綁定郵箱驗證碼

POST api/forehead/user/setting/binding/email/get/code — urlForm — STAPI

參數型別必填說明
emailstring郵箱地址
typestring固定值 "email_bind"

Response: 無 data,僅含 code 和 message。


寫入類 — 提款

以下 API 與提款模組共用,完整規格詳見 提款-dev


資料模型速查

WithdrawType(提款方式)

CaseorgSubmitType說明
.bank1銀行卡(含普通+專屬)
.normal2普通提款
.c2c3專屬提款
.digital(.usdt)4USDT
.digital(.ebPay)6EBPay
.digital(.tbPay)21TB
.digital(.tbu)22TBU

BankCard.status

說明
非 2正常(可使用、可刪除)
2人工審核中

GeneralConfig(提款限額)

欄位說明
minLimit / maxLimit法幣最低/最高金額
usdtMinLimit / usdtMaxLimit數字幣整體限額
usdtLimits各協議限額(minAmount, maxAmount, protocolName)
feeType.fix / .percent
fee / feeLimit手續費 / 上限
leftFreeCount / freeTimes剩餘免費次數 / 總次數
leftWithdrawCount當天剩餘提款次數

BBWalletService 職責

BBWalletService(位於 BBSport/Tab/我的/Mine/Helpers/BBWalletService.swift)是充值與提款的入口管理器,負責:

  • 進入提款流程 (openWithdrawVC):刷新銀行卡列表 → 查詢最新提款狀態 → 判斷是否需綁定手機/流水不足 → 進入提款頁或提款詳情頁
  • 進入充值流程 (openRecharge):查詢充值狀態 → 判斷是否有進行中訂單 → 載入快捷金額和代理碼 → 進入充值頁
  • 發起充值請求 (requestRecharge):區分內部支付(/do/transfer)和第三方支付(/do/submit URL 拼接跳轉)
  • 錢包轉帳 (toCenterWallet):提款前將各場館子錢包餘額轉入中心錢包
  • 運營位圖片快取:持有 rechargeOperateList

實作重點

  • OCR 銀行卡辨識:使用 AipOCR SDK 拍照自動識別卡號
  • 雙通道綁卡:自動驗卡失敗 → 人工審核通道(需上傳照片,status=2)
  • 極驗驗證流程:所有發送驗證碼 API 都需極驗四件組
  • 提款先轉帳:提款前先將餘額從各錢包轉入中心錢包
  • C2C 專屬提款:後端控制限額和次數,支援拆單
  • 收款地址:配合省份選擇,用於實物獎品配送

關鍵數字

  • 每種虛擬幣最多 5 個地址
  • 密碼規則:8~20 字元,至少數字+字母 2 種組合
  • 匯率精度:USDT/TB/TBU = 4 位小數,EB = 2 位小數