Booker
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 熟悉反波膽-==投注頁== ###### tags: `Work`, `反波膽` - ### 目標/情境 - 供客戶使用者一覽該賽事資訊及所有比分投注最低賠率(半場/全場) - 供客戶使用者一覽該賽事總投注金額及各比分投注金額 - 引導使用者登入/註冊後,進行投注下單 - 系統每15秒自動更新投注資訊,或客戶使用者可手動更新 - 供客戶使用者可挑選同聯盟其他可投注場次 - 供客戶使用者快速聯繫客服及一覽平台各項功能 (導覽列) - ### 功能 ([Task #13804](https://redmine.dingyi.io/issues/13804)) - 賽事資訊 * 從後台【賽事管理 -> 賽事管理】撈取該賽事資料,管理方使用者可從後台新增賽事或設定自動新增指定聯盟的賽事 ([後台連結](https://14-lb-stage.dingyi.io/sport-game/match-management)) * 賽事資訊顯示 1. 賽事所屬聯盟 2. 對戰組合 (主客隊隊名、LOGO、比分) 3. 投注截止時間 (MM/DD/hh/mm,北京時區) 4. 投注截止倒數 (hh/mm/ss) * 表頭下拉可選同聯盟其他可投注賽事(僅顯示主客隊隊名/LOGO),點擊即前往該賽事 - 投注選項 * 從後台【賽事管理 -> 賽事管理 -> 賠率設定】撈取該賽事資料,管理方使用者可從後台針對各種比分投注設定以下欄位 ([後台連結](https://14-lb-stage.dingyi.io/sport-game/match-management)) 1. 比分組合投注開啟/關閉 2. 賠率設定 3. 已投注金額顯示 4. 可投注金額上限設定 5. ==(產生誘因,吸引使用者投注?) 虛擬投注金額上限設定== 6. 保本開啟/關閉 * 點擊任一比分組合,即可進行投注(需先登入) * 特殊比分組合 : 1. 其他(H) : 主隊勝且為選項外比分 2. 其他(A) : 客隊勝且為選項外比分 3. ==(?)其他(D) : 半場投注選項外比分皆獲勝(規格敘述)== 4. ==(?)其他 : 半場投注選項外比分皆獲勝(後台顯示)== * 投注頁面從底部上拉頁面顯示投注,使用者可手動輸入或點擊金額選項投注 (會顯示使用者目前可下注餘額,公式為"(投注額*賠率)*(1 - 手續費率)") * 手續費、最低/高投注金額皆可從後台【賽事管理 -> 體育參數設定】設定 ([後台連結](https://14-lb-stage.dingyi.io/sport-game/sport-setting)) * 報酬率會扣除手續費並直接試算供使用者即時預覽(負報酬率仍顯示綠色) * 提供15秒倒數下注,與賽事資訊頁投注賠率更新機制同,若逾時未下注,則使用者須手動更新,再重新倒數下注 * 可交易量顯示計算 1. ==(?)虛擬投注額 > 實際投注額時,公式為"可投注上限額 + 虛擬投注額 * {1 - (本機時間timestamp/matchtime)} - 實際投注額"== 2. 虛擬投注額 < 實際投注額時,公式為"可投注上限額 - 實際投注額" * ==(**Bug?**)使用者尚未登入時,點擊比分進行投注,會先跳轉登入頁,完成登入後並不會回到原頁,則轉至首頁== * ==(**Bug?**)下注完成後,比分組合可投注金額會有延遲更新,API傳入也有類似狀況 (從Network看貌似需要1分鐘才更新)== - 交易量明細 * 點擊總交易金額,會從底部上拉頁面顯示各比分組合目前後台所設定的虛擬投注金額 - 客服 : 同[首頁](/xlFg4illQMGjKta5hBIzUw) - ### API資料格式/前端對應 - 賽事資訊 * 前端互動 : 當載入該賽事頁時,API會傳入該賽事資訊及該聯盟可投注場次資訊(有設定全場/半場的變數分別傳入) * 客戶使用者登入前/後差異 : 1. 登入前,不會傳入整體站方體育參數,15秒自動更新或手動更新皆不會傳入 2. 登入後,會傳入整體站方體育參數,15秒自動更新或手動更新會同步傳入(參數為後台設定) * API資料欄位(範例) 1. 賽事資訊 ``` 客隊ID(新增後自動生成?) - awayTeamId: 557068 客隊LOGO - awayTeamLogo: "Fake Team Logo" 客隊隊名 - awayTeamName: "Fake Team Name" 比分投注選項(用Array裝資料) - betOptionList: [,…] 賽事類型(?) - gameCode: "sport_soccer" 主隊ID(新增後自動生成?) - homeTeamId: 512759 主隊LOGO - homeTeamLogo: "Fake Logo Pic" 主隊隊名 - homeTeamName: "Fake Team Name" 局號 - issueNo: 256408734 賽事所屬聯賽ID - leagueId: 207 聯賽名: "Fake leagued Name" 投注截止時間(北京時區,i大寫,是否跟其他資料為不同欄位?) - matchTIme: 1635930000000 玩法類別ID - playTypeM: 1 玩法類別 -playTypeMName: "against correct score" 全場/半場投注類別ID - playTypeS: 1 全場/半場投注類別 - playTypeSName: "Full Time" ``` 2. 後台體育參數 ``` 手續費 - bettingFee: 0.03 賽事類型(?) - gameCode: "sport_soccer" 保本安全賠率(站方保本?使用者保本?) - guaranteedMaxPayRate: 1.0123 單筆投注最高金額 - maxBet: 100000 單筆投注最低金額 - minBet: 10 虛擬投注上限金額(?) - virtualMaxBet: 10000 虛擬投注下限金額(?) - virtualMinBet: 10 ``` - 投注選項 * 前端互動 : (一) 當載入該賽事頁時,前端已獲取各比分賠率資料,並會依有無投注傳入不同資料 1. 未投注時,因無投注資料,API會傳入空Array 2. 已投注時,有投注資料,會以比分組合為單位,傳入投注資料 3. 比分組合及投注資料會依15秒自動更新或手動更新機制,傳入新投注資料 (二) 進行投注時, 1. 投注時間同賠率更新機制,僅15秒內完成投注,若逾時則需手動更新 2. 更新時,API會另傳入新資料,包含比分賠率資料/投注資料/整體站方體育參數 3. 投注完成後,預計1分鐘後API傳入新的投注資料時會更新該筆投注 * 客戶使用者登入前/後差異 1. 登入前 : 不會顯示比分投注上拉頁面,會跳轉至登入頁 2. 登入後 : 會載入使用者該賽事是否有投注的資料,若無投注則傳入空Array * API資料欄位(範例) 1. 比分賠率資料 ``` 比分組合投注開啟/關閉 - enabled: true 保本開啟/關閉 - guaranteed: false 比分組合投注最高上限 - limitAmount: 500000 比分組合 - option: 0 (邏輯: option值除以100000後,結果分配為主隊取商數,客隊取餘數) 比分組合賠率(與畫面顯示不同?) - payRate: 1.0565 虛擬投注金額 - virtualBet: 5457 ``` 2. 投注資料(以比分組合為單位) ``` 目前投注總額 - amount: 300 賽事類型(?) - gameCode: "sport_soccer" (比分組合ID?) - id: 171 局號 - issueNo: 256409585 (option, pkayTypeM, playTypeS的資料組合?) - msokey: "1:1:0" 比分組合 - option: 0 (邏輯: option值除以100000後,結果分配為主隊取商數,客隊取餘數) 玩法類別ID - playTypeM: 1 全場/半場投注類別ID - playTypeS: 1 資料更新時間戳記 - updatedAt: 1635991840301 ``` 3. 餘額資料 ``` 使用者錢包餘額 - balance: 999111.29 ``` - 交易量明細 * 前端互動 : 當賽事資料載入時,已將比分賠率資料傳入,因此頁面僅將比分組合及虛擬投注金額的欄位資料呈現 * 客戶使用者登入前/後差異 : 無 * API資料欄位(範例) : 同「比分賠率資料」欄位 - 客服 : 同[首頁](/xlFg4illQMGjKta5hBIzUw)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully