---
# System prepended metadata

title: Untitled

---

gti-app文件（前台 client 用）

---
gti-appservice

    測試機：http://172.16.2.244:9491
`一、登入：`

API

POST /phone/v1/login

Headers

KEY	VALUE
Content-Type	application/json
說明

1.登入,做為確認帳戶是否存在

參數

1.token登入（只需要輸入token)

{"token": "token"}
2.帳號 加上password登入

{"account": "account", "password": "123456"}
3.loginKey登入

{"loginKey": "156e34b8-8cbf-467c-8328-5e454826b5b4" }
回傳

name	text
resultCode	1=成功,0=失敗,241008=已登入
errorCode	錯誤訊息
token	此玩家的token
回傳成功：
1.token登入（只需要輸入token)

{
"resultCode": 1,
"token": "eyJ1aWQiOiIyNzE4MzkxZDFjZDA0YjViYmFkZDQ2MGFmZmNlM2ZjOCIsImFnZW50IjoiTVlHSU4iLCJnYW1lUGxhdGZvcm1JZCI6Ik1ZQVBQIiwiY3VycmVuY3kiOiJNWVIiLCJob3VzZSI6Ik1ZR0lOIiwicGxhdGZvcm0iOiJNWUdJTiIsInRva2VuIjoiYzUxMjk1MGQwZjIxZmRhYzA3OTg0MDAzYmRkZmY5NmJmZGRkMGRkMGQ5YzhmYmQ4In0="
}
2.帳號 加上password登入

{
"loginKey": "6c1ab8fc-1925-4664-aedd-5d21335cde22",
"resultCode": 1,
"token": "eyJ1aWQiOiIyNzE4MzkxZDFjZDA0YjViYmFkZDQ2MGFmZmNlM2ZjOCIsImFnZW50IjoiTVlHSU4iLCJnYW1lUGxhdGZvcm1JZCI6Ik1ZQVBQIiwiY3VycmVuY3kiOiJNWVIiLCJob3VzZSI6Ik1ZR0lOIiwicGxhdGZvcm0iOiJNWUdJTiIsInRva2VuIjoiNjBlZDQyMTY2NTRiYjY5N2Y3OWQ0ZDA3YWFiOTAyYzU1MzEwZjk2YWFlYjNlMjU3In0="
}
3.loginKey登入 回傳一組新loginkey

{
"loginKey": "3c46107e-972c-424b-901d-14b8f2f48e08",
"resultCode": 1,
"token": "eyJ1aWQiOiIyNzE4MzkxZDFjZDA0YjViYmFkZDQ2MGFmZmNlM2ZjOCIsImFnZW50IjoiTVlHSU4iLCJnYW1lUGxhdGZvcm1JZCI6Ik1ZQVBQIiwiY3VycmVuY3kiOiJNWVIiLCJob3VzZSI6Ik1ZR0lOIiwicGxhdGZvcm0iOiJNWUdJTiIsInRva2VuIjoiN2RhYjk0NWY4Yjk4OTdjMTk3NGE0MjU5YTk5OTNhZTk4ZjQxOTgzMTNmMDY3ZTMxIn0="
}
回傳失敗：

{
  "resultCode": 0,
  "errorCode": "name or password error!"
}


`二、更改密碼：`

API

POST /phone/v1/changePassword

Headers

KEY	VALUE
Content-Type	application/json
說明


參數

{
  "token": "eyJ1aWQiOiIyNzE4MzkxZDFjZDA0YjViYmFkZDQ2MGFmZmNlM2ZjOCIsImFnZW50IjoiTVlHSU4iLCJnYW1lUGxhdGZvcm1JZCI6Ik1ZQVBQIiwiY3VycmVuY3kiOiJNWVIiLCJob3VzZSI6Ik1ZR0lOIiwicGxhdGZvcm0iOiJNWUdJTiIsInRva2VuIjoiN2RhYjk0NWY4Yjk4OTdjMTk3NGE0MjU5YTk5OTNhZTk4ZjQxOTgzMTNmMDY3ZTMxIn0=",
  "newPassword": "Aa123456",
  "oldPassword": "Aa123456"
}
回傳

name	text
resultCode	1=成功,0=失敗
errorCode	錯誤訊息
回傳成功：

{"resultCode": 1}
回傳失敗：

{
  "resultCode": 0,
  "errorCode": "password error"
}


`三、取得後台輸入會員公告內容，可顯示於客戶端：`

API

POST /phone/v1/queryAccountAnnouncementList

Headers

KEY	VALUE
Content-Type	application/json
說明


參數

{
  "token":"eyJhY2NvdW50SW5mbyI6eyJhZ2VudCI6IkdJTk1ZUiIsImhvdXNlIjoiR0lOTVlSIiwicGxhdGZvcm0iOiJNWUdJTiIsImN1cnJlbmN5IjoiTVlSIiwiYWNjb3VudCI6InNhbXRlc3QwMDEifSwidWlkIjoiNDhkMmNhNWJmZjg0NDZhNGI1OTU5YjQ5N2YyNzAxN2QiLCJhZ2VudCI6IkdJTk1ZUiIsImN1cnJlbmN5IjoiTVlSIiwiaG91c2UiOiJNWUdJTiIsImFjY291bnQiOiJzYW10ZXN0MDAxIiwicGxhdGZvcm0iOiJHVEkiLCJ0b2tlbiI6IjVjNzFkMmFmYTVkZjNkOTQ3NTU5NDJjN2FhNDA5OThhOTdhZTg4MDBmODU2N2IxNiJ9",
  "lag":"Cn"
}
回傳

name	text
resultCode	1=成功,0=失敗
errorCode	錯誤訊息
回傳成功：

{
    "id": "anc8",
    "time": 1581061610000,
    "title": "測試公告2要看1",
    "content": "測試公告2要看1",
    "status": 1
}
回傳失敗：

{
  "resultCode": 0,
  "errorCode": "miss values"
}


```
三之一、刪除會員公告：
```

API

POST /phone/v1/deleteAccountAnnounce

Headers

KEY	VALUE
Content-Type	application/json
說明

1.配合三,並帶入要刪除公告的id,和token
參數

{
    "token": "eyJhY2NvdW50SW5mbyI6eyJhZ2VudCI6Im15dGltMDAxIiwiaG91c2UiOiJHSU5NWVIiLCJwbGF0Zm9ybSI6Ik1ZR0lOIiwiY3VycmVuY3kiOiJNWVIiLCJhY2NvdW50IjoidGVzdDIwMDEifSwidWlkIjoiYjk0N2Q0YWVlM2Q1NDMzZjg2YmFlZjc3ODA2OTVlZDgiLCJhZ2VudCI6IkdJTk1ZUiIsImN1cnJlbmN5IjoiTVlSIiwiaG91c2UiOiJNWUdJTiIsImFjY291bnQiOiJ0ZXN0MjAwMSIsInBsYXRmb3JtIjoiR1RJIiwidG9rZW4iOiJlMTJlNThkYWVlMTZiNTU5ZGViYzQ2Njk4ODdlZDU0N2RiZmRjYWNhNjVkYWE0NmEifQ==",
    "id": "yid123"
}
回傳

name	text
resultCode	1=成功,0=失敗
errorCode	錯誤訊息
回傳成功：

{
    "resultCode": 1,
    "errorCode": ""
}
回傳失敗：
apiResp = 檢查失敗原因用的回傳參數

{
  "resultCode": 0,
  "errorCode": "miss values",
  "apiResp": "error"
}


```
四、取得後台輸入跑馬燈內容，可顯示於客戶端：
```

API

POST /phone/v1/queryMarqueeAnnouncementList

Headers

KEY	VALUE
Content-Type	application/json
說明


參數

{
  "token":"eyJhY2NvdW50SW5mbyI6eyJhZ2VudCI6IkdJTk1ZUiIsImhvdXNlIjoiR0lOTVlSIiwicGxhdGZvcm0iOiJNWUdJTiIsImN1cnJlbmN5IjoiTVlSIiwiYWNjb3VudCI6InNhbXRlc3QwMDEifSwidWlkIjoiNDhkMmNhNWJmZjg0NDZhNGI1OTU5YjQ5N2YyNzAxN2QiLCJhZ2VudCI6IkdJTk1ZUiIsImN1cnJlbmN5IjoiTVlSIiwiaG91c2UiOiJNWUdJTiIsImFjY291bnQiOiJzYW10ZXN0MDAxIiwicGxhdGZvcm0iOiJHVEkiLCJ0b2tlbiI6IjVjNzFkMmFmYTVkZjNkOTQ3NTU5NDJjN2FhNDA5OThhOTdhZTg4MDBmODU2N2IxNiJ9"
}
回傳

name	text
resultCode	1=成功,0=失敗
errorCode	錯誤訊息
回傳成功：

{
    "data": [{
        
        "detail": {
        "contentTh": "นี่คือการประกาศโปรดยกโทษให้ฉันสำหรับการซ่อมบำรุงเวลา 00:00:00 การบำรุงรักษาเสร็จสิ้นเวลา 14:00 น. ในตอนบ่ายผู้เล่นโปรดรอคอยมันด้วย",
        "contentCn": "4這是公告，系統 00:00:00 進行維護請見諒，下午 14:00:00 維護完畢，玩家請期待，滿千送百，滿萬送千，12:00:00 開始起跑，錯過就 沒有了。",
        "contentEn": "This is the announcement. Please forgive me for the maintenance at 00:00:00. The maintenance is completed at 14:00:00 in the afternoon. Players please look forward to it."}
    }],
    "resultCode": 1,
    "errorCode": ""
}
回傳失敗：

{
  "resultCode": 0,
  "errorCode": "miss values"
}
五、startGame：

API

POST /phone/v1/startGame

Headers

KEY	VALUE
Content-Type	application/json
說明

1.必須先取得token,請參閱（一、登入）
參數

{
    "token": "eyJhY2NvdW50SW5mbyI6eyJhZ2VudCI6Im15dGltMDAxIiwiaG91c2UiOiJHSU5NWVIiLCJwbGF0Zm9ybSI6Ik1ZR0lOIiwiY3VycmVuY3kiOiJNWVIiLCJhY2NvdW50IjoidGVzdDIwMDEifSwidWlkIjoiYjk0N2Q0YWVlM2Q1NDMzZjg2YmFlZjc3ODA2OTVlZDgiLCJhZ2VudCI6IkdJTk1ZUiIsImN1cnJlbmN5IjoiTVlSIiwiaG91c2UiOiJNWUdJTiIsImFjY291bnQiOiJ0ZXN0MjAwMSIsInBsYXRmb3JtIjoiR1RJIiwidG9rZW4iOiJlMTJlNThkYWVlMTZiNTU5ZGViYzQ2Njk4ODdlZDU0N2RiZmRjYWNhNjVkYWE0NmEifQ==",
    "gamePlatformId": "MYAPP",
    "language": "eng",
    "gameCode": "MYAPP0054"
}
回傳

name	text
resultCode	1=成功,0=失敗
errorCode	錯誤訊息
回傳成功：

{
"resultCode": 1,
"errorCode": null,
"launchUrl": "<html><head><link rel="icon" type="image/png" href="favicon.png" /><!-- CSS : implied media="all" --><title> Gti slot </title><meta name="apple-mobile-web-app-capable" content="yes"><meta charset="UTF-8" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width, height=device-height, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no"><meta name="apple-mobile-web-app-status-bar-style" content="black" /><script>function login(){window.document.location.replace('http:\/\/game.beta.gt-igaming.com/game/index.html?group=slot&lang=en-US&menu=&key=627a9832MYGIN-07596a1c9e2c4a644cededad7d656467ed1b5ca0&gtiLobbyUrl=http:\/\/mygin.gtibeta.com&gtiBetTracerUrl=http:\/\/mygin.gtibeta.com&launchId=myKingDerby');}</script></head><body bgColor="#000" style="height:200%;overflow-x:hidden;overflow-y:visible" onload='login();'></body></html>",
"token": "9129e6dbMYGIN-64e6af4f6a3a4667620075e2cf0f606687a9320f"
}
回傳失敗：

{
  "resultCode": 0,
  "errorCode": "miss values"
}
gti-appservice-test （目前這部份僅提供暫時測試使用,未來會關閉這邊的服務）

測試機：http://172.16.90.102:9491


```
六、createSuggestRecord：
```

API

POST /phone/v1/createSuggestRecord

Headers

KEY	VALUE
Content-Type	application/json
說明

1.Suggestion 玩家建議紀錄
參數


{
	"token":"aaaaaaa",
	"status":901,
	"phone":"0987654321",
	"line":"0987654321",
	"weChat":"0987654321",
	"category":501,
	"detail":"遊戲不能玩GG"
}

輸入參數            屬性       註解
"token"           String     //玩家登入token 
"status"          BIGINT     //狀態 暫定 901未處理 /902已處理 /903 /904
"phone"           String     //聯絡方式 phone
"line"            String     //聯絡方式 line
"weChat""         String     //聯絡方式 weChat
"category"        BIGINT     //類別 501其他/ 502遊戲問題 /503代理欺騙 /504登入不了 /505代理投訴
"detail"          String     //內容

回傳參數
"resultCode"    int        // 1 成功,
"errorCode"     String     //錯誤訊息
"id"            String     //表單編號

```
七、update：
```

API

POST /phone/v1/update

Headers

KEY	VALUE
Content-Type	application/json
說明

1.News account 已讀
參數

{
  "token":"xxxxxxxx",
  "house":"GINMYR",
  "agent":"momo001",
  "id":"anc2"
}

回傳參數
"resultCode"    int        // 1 成功,
"errorCode"     String     //錯誤訊息

```
八、queryAgentQuotaTransListELK：
```

API

POST /phone/v1/queryAgentQuotaTransListELK

Headers

KEY	VALUE
Content-Type	application/json
說明

1.Score Log 進分紀錄 
參數

{
  "token": "xxxxxxxx",
  "startTime": 1593532800000,
  "endTime": 1602691199999,
  "pageIndex": 1,
  "pageSize": 10
}

回傳參數
{
  "data": [
    {
      "updateTime": 1602660964000,
      "betAmount": 10000000,
      "beforeBalance": 0,
      "afterBalance": 10000000
    }
  ],
  "pageInfo": {
    "pageIndex": 1,
    "pageSize": 10,
    "dataCount": 1
  },
  "resultCode": 1
}


```
九、getBetLogForFrontend：
```

API

POST /phone/v1/getBetLogForFrontend

Headers

KEY	VALUE
Content-Type	application/json
說明

1.Score Log 進分紀錄 
參數

{
  "token": "xxxxxxxx",
  "gid": "MYAPP0169",
  "startTime": 1593532800000,
  "endTime": 1602691199999,
  "pageIndex": 1,
  "pageSize": 10
}

gid不給會查全部

回傳參數

內容太大,請洽nick



```
十、queryGameBaseList ：
```

API

POST /phone/v1/queryGameBaseList 

Headers

KEY	VALUE
Content-Type	application/json
說明


參數

{
  "token": "xxxxxxxx",
}


回傳參數

請洽nick



```
十一、queryMissionList  ：
```

API :要任務列表

POST /phone/v1/queryMissionList 

Headers

KEY	VALUE
Content-Type	application/json
說明


參數

{
  "token": "xxxxxxxx",
}


回傳參數

請洽nick


```
十一、activeBanner  ：
```

API :要任務列表

POST /phone/v1/activeBanner 

Headers

KEY	VALUE
Content-Type	application/json
說明


參數

{
  "token": "xxxxxxxx",
}


回傳參數

請洽nick



```
十二、getLevelInfoForAccount  ：
```

API :要任務列表

POST /phone/v1/getLevelInfoForAccount 

Headers

KEY	VALUE
Content-Type	application/json
說明


參數

{
  "token": "xxxxxxxx",
}


回傳參數

請洽nick

