--------------------- # 驗證方式 ```plaintext 連線方式均為 post body 帶入 json 格式 加密方式 AES algorithm, specifically CBC mode, with 256 bits key length and PKCS7 padding. 將整個 data-raw 加密 iv(base64) + encrypt data-raw(base64) 送出 ``` # php 加解密範例 ```plaintext encrypt function encrypt($string) { $key = base64_decode('MB7j5Nh5GQJsWx6CJS7HEp53YBng0lNZz4u0RHfC83k='); $encryptMethod = "AES-256-CBC"; $iv = openssl_random_pseudo_bytes(16); $output = openssl_encrypt($string, $encryptMethod, $key, OPENSSL_RAW_DATA, $iv); $output = base64_encode($iv) . base64_encode($output); return $output; } decrypt function decrypt($string) { $key = base64_decode('MB7j5Nh5GQJsWx6CJS7HEp53YBng0lNZz4u0RHfC83k='); $encryptMethod = "AES-256-CBC"; $iv = base64_decode(substr($string, 0, 24)); $string = substr($string, 24); $output = openssl_decrypt(base64_decode($string), $encryptMethod, $key, OPENSSL_RAW_DATA, $iv); return $output; } ``` ## flutter 加解密範例 ```plaintext static final key = 'MB7j5Nh5GQJsWx6CJS7HEp53YBng0lNZz4u0RHfC83k='; static String? encrypt(String data) { try { var iv = IV.fromLength(16); var encrypter = Encrypter( AES( Key.fromBase64(PEAES.key), iv, mode: AESMode.cbc, padding: 'PKCS7', ), ); var encrypted = encrypter.encrypt(data); var encryptedBase64 = encrypted.base64; var ivBase64 = iv.base64; return ivBase64 + encryptedBase64; } catch (e) { return null; } } static String? decrypt(String data) { try { var iv = data.substring(0, 24); var encryptedBase64 = data.substring(24); var encrypter = Encrypter( AES( Key.fromBase64(PEAES.key), IV.fromBase64(iv), mode: AESMode.cbc, padding: 'PKCS7', ), ); return encrypter.decrypt(Encrypted.fromBase64(encryptedBase64)); } catch (e) { return null; } } ``` ## Postman 加解密範例 ```js // Per-request Script if (pm.request.method == 'POST') { var apiSecret = pm.variables.get("apiKey"); var body = JSON.parse(pm.request.body.raw); body.key = apiSecret; var bodyString = JSON.stringify(body); var iv = CryptoJS.lib.WordArray.random(16); var aeskey = CryptoJS.enc.Base64.parse(pm.variables.get("apiSecret")); var msg = CryptoJS.enc.Utf8.parse(bodyString); var ciphertext = CryptoJS.AES.encrypt( msg, aeskey, { iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 }).ciphertext; var ivBase64 = iv.toString(CryptoJS.enc.Base64); var ciphertextBase64 = ciphertext.toString(CryptoJS.enc.Base64); pm.request.body.update(ivBase64+ciphertextBase64); } // Tests Script var data = responseBody.replaceAll("\"", "").replaceAll("\\", ""); var iv = CryptoJS.enc.Base64.parse(data.slice(0,24)); var ciphertext = CryptoJS.enc.Base64.parse(data.slice(24)); var key = CryptoJS.enc.Base64.parse(pm.variables.get("apiSecret")); var bytes = CryptoJS.AES.decrypt( { ciphertext: ciphertext }, key, { iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 }); var plainText = bytes.toString(CryptoJS.enc.Utf8); var template = ` <style type="text/css"> div {white-space: pre-wrap; background-color: #202020; color:white;} </style> <div> {{response}} </div> `; const payloadJson = JSON.parse(plainText); const payload = JSON.stringify(payloadJson, null, 4) pm.visualizer.set(template, { response: payload }); ``` # php 建立會員範例 ```plaintext body raw = {"password":"dome","email":"m123@gamil.com"} encrypt =>8JOV5zqPb/FlIbFPmEWaJA==OtQQX9hfLEht9gX2rt26Q0UlVOWDKlKsLoZKznykuXJLW6E9TLehsTeLBbmUdyLP curl --location --request POST 'http://{{domain}}/v1/user/create' \ --header 'Content-Type: text/plain' \ --data-raw '8JOV5zqPb/FlIbFPmEWaJA==OtQQX9hfLEht9gX2rt26Q0UlVOWDKlKsLoZKznykuXJLW6E9TLehsTeLBbmUdyLP' Response as YxR5y6zine+2Ck+yvksbSg==Bk3krlhPmCVymahPJ26dosmJ2uGT6yXq2CJ+lYuB8ryl5Q9HzOFmHReteXx0eZ\/w decrypt => {"Code":1,"Data":[],"Msg":"success"} ``` # API ## 加密 解密 ```plaintext Request POST /v1/user/encrypt --data-raw 帶入 未加密參數即可 /v1/user/decrypt --data-raw 帶入 已密參數即可 ``` ## uuid 建立會員 ```plaintext Request POST /v1/user/create-uuid ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str | uuid 建立會員密碼預設 'uuid' | | fb_id | str | 必要 fb_id 建立會員密碼預設 'fb_id' | | google_id | str | 必要 google_id 建立會員密碼預設 'google_id' | | apple_id | str| 必要 apple_id 建立會員密碼預設 'apple_id' | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | -7 | 會員識別 唯一值重複 | | ## 建立會員 ```plaintext Request POST /v1/user/create ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 必要 | | password | str(63) | 必要 | | email | str(255) | 與 phone 選填 必要 | | phone | str(31) | 與 email 選填 必要 | | option | json | 請使用 json | | key | str | 請使用 提供的 key 做身份驗證 必要 | | citizenship | /^\[A-Z\]{2}$/ | 國籍 | |recommender| str | 推薦碼 沒有帶入就是代理繼承| ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | -7 | 會員識別 唯一值重複 | | ## 更新會員資料 ```plaintext Request POST /v1/user/update ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone, uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | key | str | 請使用 提供的 key 做身份驗證 必要 | | new_phone | str(31) | 如果有要更新填入 但已經有值不會修改 (給用信箱註冊用的會員後續綁定電話用) | | new_email | str(255) | 如果有要更新填入 但已經有值不會修改 (給用電話註冊用的會員後續綁定信箱用) | | new_uuid | str(60) | 綁定新裝置ID 選填 | | new_fb_id | str | 綁定新 fb_id 選填 | | new_google_id | str | 綁定 google_id 選填 | | new_apple_id | str | 綁定 apple_id 選填 | | new_password | str(63) | 修改新密碼 選填 | | nick_name | str(99) | 選填 A-Za-z0-9 | | citizenship | /^\[A-Z\]{2}$/ | 國籍 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 查詢會員 ```plaintext Request POST /v1/user/ ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone, uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | User_id | 會員編號 | 唯一 (轉帳需要) | | Nickname | 暱稱 | | | E_mail | 電子信箱 | 會員PK值 | | E_mail_Auth | 是否驗證信箱 | ok 有 ,not 未驗證 | | Phone | 手機 | 會員PK值 | | Phone_auth | 是否驗證手機 | ok 有 ,not 未驗證 | | Level | 打碼等級 | | | Vip | 會員等級 | | | Bet_value_count | 有效投注總額 | | | Game_account | 會員遊戲帳號 | | | Game_amount | PE 點數 | | | Rebate_amount | PT 點數|| | In_game_amount | 遊戲內的點數|| | Game_free_amount | 免費遊戲內的點數|| | Eos_account | 有綁定的 eos 帳號 | | | Option | 其他 | 各平台客製化資訊 | | Referral_code| 玩家推薦馬| | | Is_First_Pay| 是否有內購過| | | Create_time|建立時間|| | Can_pay|是否開放充值| true 開放 <br> false 不開放| | V_wallet_list|綁定錢包列表| | | Create_time|註冊時間| | ## 取得TP附加屬性統計 ```plaintext Request POST /v1/user/show-transaction-tp-extra-count ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone,uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | key | str | 請使用 提供的 key 做身份驗證 必要 | Response | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | Data | 說明 | 備註 | |------|----|----| | extra_name | 名稱 | | | extra_node | 名稱 | | | extra_id | 編號 | | | count | 數量| | ## 建立會員 EOS 帳號 ```plaintext Request POST /v1/user/create-eos-account ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone,uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | eos_account | str(12) | 必填 必須 12 碼 a-z1-5 | | account_type | str() | 選折 token <br> wax <br> eos <br> 沒填寫或格式錯誤都換是 jungle | | public_key | str | 必填 公鑰 | | pay_type | enum \[code,point\] | 必填 <br>code 認證碼 <br>point 會員點數 | | code | str | 如果 pay_type = code 必填 | | key | str | 請使用 提供的 key 做身份驗證 必要 | Response | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | -2 | 參數格式錯誤 | | | -3 | 建立帳號錯誤 | | ## EOS 帳號查詢 ```plaintext Request GET /v1/get-eos-account ``` | 參數 | 型態 | 備註 | |----|----|----| | eos_account | str(12) | 必填 必須 12 碼 a-z1-5 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | 帳號資訊 | 帳號資訊內容 | | ## 上傳 TRON 公鑰 ```plaintext Request POST /v1/user/update-tron-account ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone,uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | tron_account | str() | 必填 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 驗證並且綁定 TRON 公鑰 會打一塊錢 ```plaintext Request POST /v1/user/set-pay-auth-tron-account ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone,uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | tron_account | str() | 必填 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 查詢全域變數(預設值) ```plaintext Request POST /v1/global ``` | 參數 | 型態 | 備註 | |----|----|----| | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Global | 全域變數內容 (text) | | ## 修改全域變數(預設值) ```plaintext Request POST /v1/global/edit ``` | 參數 | 型態 | 備註 | |----|----|----| | update | str | 要更新的資料 必要 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 查詢會員全域變數 ```plaintext Request POST /v1/global/user ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone, uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Global | 全域變數內容 (text) | | | Is_Default | 是否是預設值 | true 是預設值<br>false 會員設定值 | ## 修改會員全域變數 ```plaintext Request POST /v1/global/user/edit ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone, uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | update | str | 要更新的資料 必要 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 會員登入 ```plaintext Request GET /v1/user/login ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | phone 或 email | str | 必要 可選一 | | password | str(63) | 必要 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | token => 該會員憑證,使用於訪問該會員是否登入| ## 三方會員創建跟登入 ```plaintext Request POST /v1/user/other-login ``` | 參數 | 型態 | 備註 | |----|----|----| | fb_id | str | 與 fb_id, google_id, apple_id 選填 必要 | | google_id | str | 與 fb_id, google_id, apple_id 選填 必要 | | apple_id | str | 與 fb_id, google_id, apple_id 選填 必要 | | e_mail | str | 如果有提供可帶入 會綁定在會員 | | name | str | 如果有提供可帶入 會綁定在會員 | | otp | str | 選填 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | token => 該會員憑證,使用於訪問該會員是否登入| ## 會員信箱驗證(寄發驗證信) ```plaintext Request POST /v1/auth/get-mail-code ``` | 參數 | 型態 | 備註 | |----|----|----| | email | str | 驗證信箱 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | -2 | 沒有會員 | | | -3 | 代理錯誤 | | | -4 | 已經驗證過 | | | -5 | 驗證程序中稍後再嘗試 | 限制時間內已發送過郵件 | | -6 | 郵件服務故障 | | ## 會員電話簡訊驗證(寄發驗證信) ```plaintext Request POST /v1/auth/get-phone-code ``` | 參數 | 型態 | 備註 | |----|----|----| | phone | int(0,30) | 手機號碼 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | -2 | 沒有會員 | | | -3 | 代理錯誤 | | | -4 | 已經驗證過 | | | -5 | 驗證程序中稍後再嘗試 | 限制時間內已發送過郵件 | | -6 | 簡訊服務故障 | | ## 會員電話簡訊 code 驗證(驗證 code) ```plaintext Request POST /v1/auth/phone-code ``` | 參數 | 型態 | 備註 | |----|----|----| | phone | int(0,30) | 手機號碼 | | code | int(6) | 驗證碼 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 推薦碼 code 驗證 ```plaintext Request POST /v1/auth/invitation-code ``` | 參數 | 型態 | 備註 | |----|----|----| | invitation_code | str(9) | 需要驗證的驗證碼 必填 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | -2 | invitation_code 格式錯誤 | | | -4 | invitation_code 不存在 | | | -5 | invitation_code 已使用 | | ## 牌價查詢 ```plaintext Request GET /v1/list-price ``` | 參數 | 型態 | 備註 | |----|----|----| | Currency | str | 選填 沒有填 或是沒支援的幣別會以 USD 做呈現 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 市價查詢 ```plaintext Request GET /v1/market-price ``` | 參數 | 型態 | 備註 | |----|----|----| | Currency | str | 選填 沒有填 或是沒支援的幣別會以 USD 做呈現 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 幣種列表 ```plaintext Request GET /v1/coin-list ``` <table> <tr> <th>參數</th> <th>型態</th> <th>備註</th> </tr> </table> ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 法幣報價 ```plaintext Request GET /v1/get-rter ``` | 參數 | 型態 | 備註 | |----|----|----| | | | | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | Data | 說明 | 備註 | |------|----|----| | 幣別 | 1美元兌換多少 | | | updateTime | 更新時間| 15分鐘更新一次| ## coin market報價 ```plaintext Request GET /v1/get-coin-market ``` | 參數 | 型態 | 備註 | |----|----|----| | | | | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | Data | 說明 | 備註 | |------|----|----| | ***USDT | 該幣別 兌換多少 usdt | | | ***_priceChangePercent | 該幣別 24H 漲跌幅 % | | | updateTime | 更新時間| 15分鐘更新一次| ## 閃對上下限資訊查詢 ```plaintext Request GET /v1/market-info ``` | 參數 | 型態 | 備註 | |----|----|----| | market | str | 必要 注意請使用大寫英文 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | 查無資訊 data = \[\] | | data | 說明 | 備註 | |------|----|----| | Market | 閃對幣別 | | | Max | 最大上限量 | | | Min | 最低限量 | | ## 閃對上下限資訊查詢 ```plaintext Request GET /v1/market-info ``` | 參數 | 型態 | 備註 | |----|----|----| | market | str | 必要 注意請使用大寫英文 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | 查無資訊 data = \[\] | | data | 說明 | 備註 | |------|----|----| | Market | 閃對幣別 | | | Max | 最大上限量 | | | Min | 最低限量 | | ## 取得遊戲連結 ```plaintext Request POST /v1/game/lobby ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone, uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | game_code |str|遊戲列表 api 可得 遊戲代碼| | is_free_game |str(1)|選填預設 N <br> Y 免費遊戲 <br> N 真錢遊戲| | lang |str| 語系,目前支援:(簡中)`zh-cn`,(繁中)`zh-tw`,(英文)`en`, 預設為代商後台設定 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | url | 遊戲大廳連結 | | ## 取得遊戲列表 ```plaintext Request POST /v1/game/get-game-list ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone, uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | lang |str| 語系,目前支援:(簡中)`zh-cn`,(繁中)`zh-tw`,(英文)`en`, 預設為代商後台設定 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Game_name | 遊戲語系 | | | Game_code | 遊戲編碼 | | ## 取得免費遊戲列表 ```plaintext Request POST /v1/game/get-free-game-list ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone, uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | lang |str| 語系,目前支援:(簡中)`zh-cn`,(繁中)`zh-tw`,(英文)`en`, 預設為代商後台設定 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Game_url | 遊戲連結 | | | Game_name | 遊戲語系 | | | Game_code | 遊戲編碼 | | ## 準備收款 ```plaintext Request POST /v1/game/receiving ``` | 參數 | 型態 | 備註 | |----|----|----| | agent | str() | 必要 代理帳號 | | wallet_account | str() | 必要 收款錢包帳號 | | symbol | str | 必要 幣別 EX: EOS ABC | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 取得會員娛樂城帳號 ```plaintext Request POST /v1/game/show-game-account ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | email | str(255) | 與 phone, uuid 選填 必要 | | phone | str(31) | 與 email, uuid 選填 必要 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Game_account | 會員娛樂城帳號 | 上分請打在 memo | ## 紀錄 log ```plaintext Request POST !form-data! /v1/set-log ``` | 參數 | 型態 | 備註 | |----|----|----| | name | str | 檔案名稱 必要 | | str | str | 內文 必要 | | type | str | log 等級 EX. info error alert ... 選填 | | key | str | 必要 加密方式備註1 | ```plaintext 備註1 ``` key = iv(base64) + encrypt agnetKey(base64) 將代理 key 帶入加密即可 ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 建立第三方收款訂單 Request POST /v1/game/create-order | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | phone 或 email 或 uuid | str | 必要 可選一 | | symbol | str | 幣種名稱 必要 | | amount | numeric | 金額 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Amount | 金額 | 需要轉帳金額一致 才能入款 | | DepositAddress | 收款地址 OR 公鑰 | | | DepositMemo | memo | 需要一致 才能入款 | ## 娛樂城轉出點數到大廳 (DB) ```plaintext Request POST /v1/game/withdraw ``` | 參數 | 型態 | 備註 | |----|----|----| | uuid | str(60) | 與 phone,email 選填 必要 | | phone 或 email 或 uuid | str | 必要 可選一 | | hall | str | 要從哪個娛樂城取出 必要 <br>ex. TP | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 查詢會員錢包交易 ```plaintext Request POST /v1/user/check-user-credit-transaction ``` | 參數 | 型態 | 備註 | |----|----|----| | t_id | str `/^[A-Za-z0-9\_]{10,30}$/` | 必要系統轉點唯一 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | date | 說明 | 備註 | |------|----|----| | T_ID | 系統唯一值 | | | Amount | 金額 | | | Amount_Before | | | | Amount_After | | | | Make_Time | 轉帳時間 | | | Type | in, out | in 轉入 <br>out 轉出 | | Status | 狀態 | | ## 會員錢包交易 ```plaintext Request POST /v1/user/user-credit-transaction ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 轉出者| | user_code | str | 必要 會員編碼 轉入者 (User_id) | | amount | decimal(14,4) | 必要 異動額度 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 會員申請提出 NFT ```plaintext Request POST /v1/nft/send-nft ``` | 參數 | 型態 | 備註 | |----|----|----| | email | str | 必填 | | key | str | 必要 | | nft_asset_id | int | NFT_id | | password | str | 會員密碼 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 會員申請提出 NFT 取消 ```plaintext Request POST /v1/nft/cancel-send-nft ``` | 參數 | 型態 | 備註 | |----|----|----| | email | str | 必填 | | key | str | 必要 | | nft_asset_id | int | NFT_id | | password | str | 會員密碼 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 查詢 NFT 內購商品 ```plaintext Request POST /v1/nft/get-nft-product-uuid ``` | 參數 | 型態 | 備註 | |----|----|----| | email | str |選填 如果帶此參數會只撈出該會員擁有的 NFT| | key | str | 必要 | | page | int | 預設 1 | | limit | int | 預設 15 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Asset_id | 商品唯一 | | | Tp_price | nft tp售價 | | | Collection_name | NFT collection_name | | | Name | nft Name | | | Img | nft Img | | | Tp_fee| 上鏈手續費 TP| | ## TP 購買 NTF 交易 ```plaintext Request POST /v1/nft/buy-nft-product ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 轉出者| | nft_asset_id | int| 必要 nft 唯一值| ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 會員 NTF 交易 ```plaintext Request POST /v1/user/user-nft-transaction ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 轉出者| | to_user_code | str | 必要 會員編碼 轉入者 (User_id) | | nft_asset_id | int| 必要 nft 唯一值| | password | str |必要 會員密碼| ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 查詢會員 NTF 交易 ```plaintext Request POST /v1/user/show-user-nft-transaction ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | start_make_time | int Unix timestamp| 開始時間 選填| | end_make_time | int Unix timestamp| 結束時間 選填| | model | str| 類型 選填 預設全部 in 轉入 <br> out 轉出 <br> send 上鏈 <br> change 內部交易| | page | int| 頁數 選填 預設 1 | | limit | int| 頁一頁幾筆 選填 預設 15 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | date | 說明 | 備註 | |------|----|----| | T_id | 系統唯一值 | | | Make_time | 處理時間 | | | Model | in, out | in 轉入 <br> out 轉出 <br> send 上鏈 | | Nft_name | 處理時間 | | | Nft_asset_id | NTF ID | | | Nft_img | NFT 圖片| | | Nft_pb_price | 當時 NFT PB| | | To_user_code | 收件者 使用者編碼 | | | To_user_email | 收件者 信箱 | | | To_user_name | 收件者 名稱| | | form_user_code | 來自者 使用者編碼| | | form_user_email | 來自者 信箱| | | form_user_name |來自者 名稱 | | ## 取得 ATR ```plaintext Request GET /v1/get-atr ``` | 參數 | 型態 | 備註 | |----|----|----| | coin | str | 幣別 全小寫 | | unit | str | 時間統計類型 | | time_period | int | 週期 選填 預設 21 | | start_time | timestamp | 開始時間 選填 預設 現在時間 | | end_time | timestamp | 結束時間 選填 預設 現在時間 | ps 時間區間 最長 100 單位 ex.1m = 100 分鐘 1h = 100 小時 | unit | 說明 | 備註 | |------|----|----| | 1m | 1分 | | | 3m | 3分 | | | 5m | 5分 | | | 15m | 15分 | | | 30m | 30分 | | | 1h | 1小時 | | | 2h | 2小時 | | | 4h | 4小時 | | | 6h | 6小時 | | | 8h | 8小時 | | | 12h | 12小時 | | | 1d | 1天 | | | 3d | 3天 | | | 1w | 1週 | | | 1M | 1月 | | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 取得 幣圈新聞 ```plaintext Request GET /v1/get-news ``` | 參數 | 型態 | 備註 | |----|----|----| | start_time | timestamp | 開始時間 必填 | | page | int | 頁數 預設1 | | limit | int | 顯示幾筆 預設 15 | | end_time | timestamp | 結束時間 選填 | | lang | str | 語系(en, zh-cn, zh-tw, th, ja, vi, id) | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | date | 說明 | 備註 | |------|----|----| | Total | 總比數 | | | PerPage | 頁數比數 | | | CurrentPage | 目前頁數 | | | Item | 內文 | Title 標題 <br>Source 來源 <br>Link 連結 <br>PubDate 時間 | --- ## 用 line 登入遊戲 ```plaintext Request GET /v1/get-line-login ``` | 參數 | 型態 | 備註 | |----|----|----| |key|str|代理 apikey 選填 預設 admin 代理| ```plaintext Response ``` 直接跳轉 line 登入頁 登入後 跳轉 遊戲 ## 用 line 綁定帳號 ```plaintext Request GET /v1/user/import-line ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | |key|str|代理 apikey 選填 預設 admin 代理| ```plaintext Response ``` 使用後會拿到 url 會員登入後 賴會回傳訊息 可以綁定他的 line-uuid ## 點數卡入金 Request POST /v1/user/use-point-card | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | point_code | str | 點數卡序號 必要| | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 查詢會員 PE 入款紀錄 Request POST /v1/user/show-transaction-pe-withdraw | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | start_make_time | int Unix timestamp| 開始時間 選填| | end_make_time | int Unix timestamp| 結束時間 選填| | is_pay | ('Y','N')| 是否付錢 選填 預設全部 | | page | int| 頁數 選填 預設 1 | | limit | int| 頁一頁幾筆 選填 預設 15 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | T_id | 系統為唯一值 | | | Amount | 加值金額 | | | Amount_before | 加值前 | | | Amount_after | 加值後 | | | Make_time | 處理時間 | | | Type_in | 入款代碼 | 後台可以看說明 | | Status | 狀態| | ## 查詢會員 TP 紀錄 Request POST /v1/user/show-transaction-tp | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | start_make_time | int Unix timestamp| 開始時間 選填| | end_make_time | int Unix timestamp| 結束時間 選填| | type | int| 交易類型 選填 | | page | int| 頁數 選填 預設 1 | | limit | int| 頁一頁幾筆 選填 預設 15 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | To_user_id | 收款人 id | 非轉帳為 - | | From_user_id | 轉帳人 id | 非轉帳為 - | | T_id | 系統為唯一值 | | | Amount | 異動金額 | | | Amount_before | 異動前 | | | Amount_after | 異動後 | | | Make_time | 處理時間 | | | Type | 入款代碼 | 1 購買 PE <br> 2 反水 <br> 3 反擁 <br> 4 轉帳 <br> | | Status | 狀態| | | Model | 轉帳類型 | sent <br> received| ## 查詢會員TP購買PE紀錄 Request POST /v1/user/show-tp-purchase | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | start_make_time | int Unix timestamp| 開始時間 選填| | end_make_time | int Unix timestamp| 結束時間 選填| | page | int| 頁數 選填 預設 1 | | limit | int| 頁一頁幾筆 選填 預設 15 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Make_time | 處理時間 | | | Count | 購買數量 | | | O_id | 訂單id | | | Pe_amount | 獲得PE| | | Price_tp | 花費 | | | Tp_after | 購買前 TP 數量 | | | Tp_before | 購買後 TP 數量 | | | Tp_product_name | TP 產品名稱 | | | Have_extra | 是否有附加屬性| yse <br> no| | Tp_extra_name | 附加屬性名稱 | 無 為空字串 | ## 忘記密碼寄發驗證碼 ``` Request POST /v1/user/forget-password ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ps. 一定要有綁定信箱才可以用 --- ## 忘記密碼驗證碼修改密碼 ``` Request POST /v1/user/forget-update-password ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | forget_password_code | str | 忘記密碼 code 必要 | | new_password | str | 新密碼 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | --- ## 查詢會員推薦紀錄 Request POST /v1/user/show-recom-mender | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | page | int| 頁數 選填 預設 1 | | limit | int| 頁一頁幾筆 選填 預設 30 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | E_mail | 下線信箱 | | | Phone | 下線電話 | | | Name | 下線名稱 | | --- ## 查詢會員收到反擁紀錄 Request POST /v1/user/show-brokerage | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | page | int| 頁數 選填 預設 1 | | limit | int| 頁一頁幾筆 選填 預設 30 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | From_e_mail | 反擁者 信箱 | | | From_phone | 反擁者 電話 | | | From_name | 反擁者 名稱 | | |Amount|金額|| | Sum_Amount |金額加總|| |Time|反擁時間|| --- ## 查詢會員收到反擁紀錄 Request POST /v1/user/show-brokerage | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | page | int| 頁數 選填 預設 1 | | limit | int| 頁一頁幾筆 選填 預設 30 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 查詢會員自己反水紀錄 Request POST /v1/user/show-rebate-log | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | start_make_time | int Unix timestamp| 開始時間 選填| | end_make_time | int Unix timestamp| 結束時間 選填| | page | int| 頁數 選填 預設 1 | | limit | int| 頁一頁幾筆 選填 預設 30 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | Data | 說明 | 備註 | |------|----|----| | Time | 結算時間 | | | Amount | 反水金額 | | | Bet_win | 時間內贏分 | | | Bet_value | 有效投注 | | | Bet_count | 注單數 | | | Status | 狀態 | init 未反水 <br> ok 已反水 | ## 查詢會員自己投注紀錄 Request POST /v1/user/get-game-bet | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | start_make_time | int Unix timestamp| 開始時間 選填| | end_make_time | int Unix timestamp| 結束時間 選填| | page | int| 頁數 選填 預設 1 | | limit | int| 頁一頁幾筆 選填 預設 30 | | key | str | 請使用 提供的 key 做身份驗證 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | Data | 說明 | 備註 | |------|----|----| | Time | 結算時間 | | | Bet_value | 有效投注 | | | Bet_count | 注單數 | | | Game_name | 遊戲名稱|| ## 新 apple 內購 ```plaintext Request POST /v1/user/new-in-apple-purchase ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | apple_product_uuid| str | 商品唯一值 | | init_pk_id | str |必要 會員轉帳唯一值| | transaction_id| str | 非init時為必要 系統轉點序號唯一值 | | status | str | 必要 <br> init 開單 <br> ok 確定扣款完成 | | other | str | 蘋果單號資訊 選填| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 新 google 內購 ```plaintext Request POST /v1/user/in-google-purchase ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | init_pk_id | str |必要 會員轉帳唯一值| | google_json_data| str json| 非init時為必要 google 內購資訊| | status | str | 必要 <br> init 開單 <br> ok 確定扣款完成 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## apple 內購 ```plaintext Request POST /v1/user/in-apple-purchase ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | apple_product_uuid| str | 商品唯一值 | | transaction_id| str | 系統轉點序號唯一值 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## google 內購 ```plaintext Request POST /v1/user/in-google-purchase ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | google_json_data| str json| google 內購資訊| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 查詢 apple 內購商品 ```plaintext Request POST /v1/user/get-in-apple-product-uuid ``` | 參數 | 型態 | 備註 | |----|----|----| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Apple_product_uuid | 商品唯一 | | | Value | 可兌換多少點數 | | ## 查詢 google 內購商品 ```plaintext Request POST /v1/user/get-in-google-product-uuid ``` | 參數 | 型態 | 備註 | |----|----|----| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Google_product_uuid | 商品唯一 | | | Value | 可兌換多少點數 | | ## 修改客製化參數 ```plaintext Request POST /v1/user/user-individual-edit ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | individual_news_lang| str | 新聞語系 請用',' 隔開 EX ' en, jp, ... ' | | individual_news_source| str | 新聞來源 請用',' 隔開 EX ' 區塊鏈新聞資訊 - 鏈聞帳號 - 鏈聞 ChainNews, 動區動趨-最具影響力的區塊鏈媒體 (比特幣, 加密貨幣), ... '| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## TP 購買 PE ```plaintext Request POST /v1/user/tp-purchase ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | tp_product_uuid| str | 購買商品id | |count|int|預設 1| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 查詢 TP 內購商品 ```plaintext Request POST /v1/get-tp-product-uuid ``` | 參數 | 型態 | 備註 | |----|----|----| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | data | 說明 | 備註 | |------|----|----| | Tp_product_uuid | 商品唯一 | | | Tp_product_name | 商品名字 | | | Price_tp | 要多少 TP | | | Pe_amount | 可以得到多少 PE | | | Pe_amount | 可以得到多少 PE | | | Have_extra | 是否有附加屬性 | yes,no | | Extra_name | 附加屬性名稱 json 語系格式 | | ## 刪除會員 ```plaintext Request POST /v1/user/del ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 會員驗證 ``` Request GET /v1/user/auth ``` | 參數 | 型態 | 備註 | |----|----|----| | token | str | 必要 | | key | str | 必要 | ``` Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | 該會員處於登入狀態 | | 999 | 成功 | 該會員沒有登入 | ## 驗證會員信箱狀態 ``` Request GET /v1/user/auth ``` | 參數 | 型態 | 備註 | |----|----|----| | email | str | 必要 | | key | str | 必要 | ``` Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | 該會員處於登入狀態 | | status | 說明 | 備註 | |------|----|----| | ok | 成功 | | | auth not exists | 沒有驗證 或是 驗證逾時 | | | auth exists | 驗證進行中 | | ## 上傳或更新虛擬貨幣錢包 ```plaintext Request POST /v1/user/update-v-wallet ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | symbol | str | 都大寫 必要 in(WAX,BSC,SOL,MATIC,TRON)| | address | str | 必要 公鑰,地址,帳號| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 刪除虛擬貨幣錢包 ```plaintext Request POST /v1/user/del-v-wallet ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | symbol | str | 都大寫 必要 in(WAX,BSC,SOL,MATIC,TRON)| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 修改推薦人 只接受原無推薦人之修改 ```plaintext Request POST /v1/user/update-recom-mender ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | recommender | int | 推薦人 code | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 每日領取試玩點數或PE ```plaintext Request POST /v1/game/get-free-game-amount ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | is_free | int | 必要 true 試玩點數| | date_Ymd | str | 選填 預設今天 格式 date(Y-m-d) ex:2022-01-01| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 每日獎勵PE領取狀態列表 ```plaintext Request POST /v1/game/get-user-award-list ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | key | str | 必要 | ```plaintext Response ``` | data | 說明 | 備註 | |------|----|----| | History | 領取歷程 | key 日期 <br> value 金額 | | Award_count | 目前每天可以領的金額 | 後台設定 會變動 | | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 取得獎勵紀錄 ```plaintext Request POST /v1/game/get-user-award-list ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | Data | 說明 | 備註 | |------|----|----| | History | 獎勵歷程 | key 日期 <br> value 領取的錢 0為未領 | | Award_count | 每日可領取的金額 | 後台調整會變動 | ## 領取獎勵 ```plaintext Request POST /v1/game/get-free-game-amount ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid | str | 必要 可選一 | | is_free | bool | 預設 false <br> true 試玩| | date_Ymd | str | 必要 領取的日期 EX 2020-01-01 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 活動列表 ```plaintext Request POST /v1/get-activity-list ``` | 參數 | 型態 | 備註 | |----|----|----| | key | str | 必要 | ```plaintext Response ``` | data | 說明 | 備註 | |------|----|----| | Name | 活動名稱 | | | Url | 活動連結 | | | Json | 活動 json | | | Start_at | 開始日期 | | | End_at | 結束日期 | | | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ps. 只會顯示目前日期內的活動 ## 排行榜 ```plaintext Request POST /v1/user/get-ranking-count ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid 或 Bearer | str | 必要 可選一 | | time | str | 查詢時間 格式 <br> 日 Y-m-d <br> 週 Y-mdmd 禮拜一為開始| | cycle_key |str | 週期 格式 <br> 日 day <br> 週 week| | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | Data | 說明 | 備註 | |------|----|----| | All_ranking | 排名 | json 格式 | | User_ranking | 登入者旁排行資訊 | | ## 取得輪盤資訊 ```plaintext Request POST /v1/game/get-user-roulette-game-info ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid 或 Bearer | str | 必要 可選一 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | Data | 說明 | 備註 | |------|----|----| | Bonus_list | 獎勵選項 | array 格式 | | Time_left | 冷卻時間 | 00:00:00 為準備好了 | ## 領取輪盤獎勵 ```plaintext Request POST /v1/game/get-roulette-bonus ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid 或 Bearer | str | 必要 可選一 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 聊天室檢舉 ```plaintext Request POST /v1/user/mattmost-peach ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid 或 Bearer | str | 必要 可選一 | | mattmost_user_id | str | 必要 | | channel_id | str | 必要 | | post_id | str | 必要 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 聊天室取得別人的資訊 ```plaintext Request POST /v1/user/mattmost-get-user-data ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid 或 Bearer | str | 必要 可選一 | | uid | int | 必要 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | ## 重新取得聊天室密鑰 ```plaintext Request POST /v1/user/mattmost-get-new-token ``` | 參數 | 型態 | 備註 | |----|----|----| | phone 或 email 或 uuid 或 Bearer | str | 必要 可選一 | | key | str | 必要 | ```plaintext Response ``` | code | 說明 | 備註 | |------|----|----| | 1 | 成功 | | | Data | 說明 | 備註 | |------|----|----| | Data | 密鑰 | | ## code 列表 | code | 說明 | 備註 | |------|----|----| | -101 | 參數 key 格式錯誤 | | | -102 | 解密失敗 | | | -103 | 參數解 json 無效 | | | -104 | 代理 key 無效| | | -999 | 沒有登入| | ||內部用|| | -2 | 缺少會員 phone 或 email 唯一值 | | | -6 | password 格式無效 | | | -7 | email 格式無效 | | | -8 | symbol 格式無效 | | | -9 | name 格式無效 | | | -10 | str 格式無效 | | | -11 | amount 格式無效 | | | -12 | receiveAddress 格式無效 | | | -13 | uuid 格式無效 | | | -14 | type 格式無效 | | | -15 | t_id 格式無效 | | | -16 | citizenship 格式無效 | | | -17 | pay type 格式無效 | | | -18 | code 格式無效 | | | -19 | update 格式無效 | | | -20 | eos_account 格式無效 | | | -21 | phone 格式無效 | | | -22 | eos pay type 格式無效 | | | -23 | invitation code 格式無效 | | | -24 | point_card 格式無效 | | | -25 | tron account 格式無效 | | | -26 | apple_product_uuid 格式無效 | | | -27 | transaction_id 格式無效 | | | -28 | user 格式無效 | | | -29 | 會員已存在 | | | -30 | 帳號已存在 | | | -32 | 驗證已存在 | | | -33 | t_id 已存在| | | -34 | tron account 已存在| | | -35 | 會員不存在 | | | -36 | 遊戲會員不存在 | | | -37 | 大廳不存在 | | | -38 | 代理不存在 | | | -39 | 上層代理不存在 | | | -40 | 驗證中 | | | -41 | 會員不存在 | | | -42 | eos account 已存在 | | | -43 | 推薦碼不存在 | | | -44 | t_id 不存在 | | | -45 | 驗證失敗 | | | -46 | 大廳錯誤 | | | -47 | 建立遊戲帳號失敗 | | | -48 | 更新會員失敗 | | | -49 | 建立遊戲失敗 | | | -50 | 非同層代理線 | | | -51 | 代理最上限 | | | -52 | 信件伺服器壞掉 | | | -53 | 沒有登入 | | | -54 | 沒有 TP| | | -55 | code 已被使用 | | | -56 | 餘額不足 | | | -57 | 金額太少 || | -58 | 金額太多 | | | -59 | 密碼錯誤 || | -60 | 沒有 tron account | | | -61 | 轉點進行中| | | -62 | 已驗證 | | | -63 | 驗證 | | | -64 | code 不存在 | | | -65 | 忘記密碼驗證存在中 | | | -66 | 驗證信箱不存在 | | | -67 | 蘋果內購商品不存在 | | | -68 | 忘記密碼驗證碼不正確 | | | -69 | google_product_uuid 格式無效 | | | -70 | google 商品不存在| | | -71 | tp_product_uuid 格式無效| | | -72 | TP 不足| | | -73 | user_code 格式無效| | | -74 | user_code 會員不存在| | | -75 | forget_password_code 格式無效| | | -76 | new_password 格式無效| | | -77 | forget password code 不存在| | | -78 | forget password code 錯誤| | | -79 | 轉帳超過當天上限| | | -80 | 轉帳小於下限| | | -81 | 當前等級無法轉帳| | | -82 | 無推薦碼使用人| | | -83 | address 格式無效| | | -84 | 電話使用中| | | -85 | 推薦人已存在| | | -86 | nft 不存在| | | -87 | nft_asset_id 格式無效| | | -88 | 請綁定錢包| | | -89 | 三方入款 未開單| | | -90 | 獎勵已領取| | | -91 | 沒有獎勵| | | -92 | 沒有註冊| | | -93 | date_Ymd 無效格式| | | -94 | init_pk_id 無效格式| | | -95 | pk_value 無效格式| | | -96 | time 無效格式| | | -97 | 公會已存在| | | -98 | 沒有權限| | | -99 | 公會不已存在| | | -100 | 申請中| | | -105 | 轉盤冷卻中| | | -106 | 信箱已有人使用| | | -107 | 三方登入未使用| | | -108 | 缺少參數| |