# W1 API 登入遊戲/轉帳 - W1API forward game sequence ```sequence 遊戲平台->W1API: 建立使用者 w1api/CreateUser Note right of W1API: insert t_wallet W1API-->遊戲平台: 建立並返回成功 Note right of W1API: insert t_game_platform_user 遊戲平台->W1API: H1開分 w1api/H1WalletTransferFund Note right of W1API: insert t_wallet_session_v2 Note right of W1API: update t_wallet.credit 遊戲平台->W1API: w1api/ForwardGame W1API->W1API: 確認可以進入遊戲 Note right of W1API: 館別timeout/維護/未開分 W1API->W1API: 對最後遊戲館踢線/提款 W1API->W1API: 確認是否存在遊戲ID W1API->遊戲館: CreateGameUser 遊戲館-->W1API: 建立使用者結果 Note right of W1API: insert t_wallet_transfer_record W1API->遊戲館: 轉入所有錢包餘額 DepositGameWalletV2 遊戲館-->W1API: 返回轉入結果 Note left of W1API: update t_wallet.credit W1API->遊戲館: 取得登入遊戲連結 Login 遊戲館-->W1API: 返回遊戲URL Note left of W1API: update t_wallet.last_platform ``` - W1API cash out sequence ```sequence 遊戲平台->W1API: 洗分 w1api/H1WalletTransferFund W1API->W1API: 確認開分號 Note right of W1API: update wallet_session_v2.status W1API->W1API: operator schedule Note left of W1API: insert t_wallet_transfer_record W1API->遊戲館: 對所有遊戲館踢線/提款 遊戲館-->W1API: 返回成功 Note left of W1API: update t_wallet W1API->遊戲平台: 退款RefundAmount 遊戲平台-->W1API: 返回成功 Note right of W1API: update wallet_session_v2.status ``` # 拉帳 對帳 補單 * Startup新增拉帳 匯總 比對的排程 :::info <font color=blue> **拉帳 名稱=遊戲+RecordSchedule** **每小時注單匯總 名稱=遊戲+ReportSchedule** **每小時注單比對 名稱=遊戲+AuditSchedule**</font>  ::: * 建立拉單t_system_parameter資料 :::info <font color=blue>**min_value=控制開關**</font><br> <font color=blue> **拉帳 KEY=遊戲+RecordSchedule** **每小時注單會總 KEY=遊戲+ReportSchedule** **每小時注單比對 KEY=遊戲+AuditSchedule**</font><br>  ::: * 拉帳PostRtgRecord :::info * 拉單時間為五分鐘前的注單 <font color=blue>**H1有過帳問題 超過12點拉的都是歸在12點 例:11:56的注單會因在12:01拉回 所以注單的五分鐘會總會在12點額不是11:55**</font><br>  <font color=blue>**注單統整成5分鐘匯總 要注意注單的輸贏是 淨輸贏 還是輸贏 如 注單 的是 淨輸贏 Netwin 就直接加總 Win 就要 淨輸贏+投注金額 反之 Netwin 輸贏-投注金額 Win 就直接加總**</font><br>  ::: * 每小時匯總 :::info <font color=blue>**須注意廠商有無提供每小時匯總的API**</font><br>  ::: * 每小時比對及補單-RepairGameRecord :::info <font color=blue>**時間會切分為10分取資料比對(怕一次一小時資料太多)**</font><br>   :::
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up