# API內部使用資料文件
## Auth
### 使用者註冊 Method:POST
* ### /api/auth/register
> [color=#b595e5] 輸入參數
| 參數名稱 | 類型 |必填|說明|備註|
| - | - | - | - | - |
| name| String | Y | 姓名 |
| account| String | Y | 帳號 |
| password | String | Y | 密碼 | |
| password_confirm | String | Y | 確認密碼 |
| phone | String | Y | 手機 |
| recommended_code | String | N | 輸入的推息薦碼 |
| register_domain | String | N | 註冊網域 |
| ip | String | N | IP |
| country_name | String | N | 國家 |
| city_name | String | N | 城市 |
> [color=#e88f4c] 返回 Success
``` JSON
return
{
"status": "success",
"code": 200,
"message": "",
"data": {
"agent_id": 1,
"level_id": 11,
"status_withdraw": 1,
"status_account": 1,
"recommend_code": "9NAtoP",
"name": "1234567",
"account": "123456789",
"password": "$2y$10$QHigE574D.GwFBaAq13kXOG0mgg/HyCMroTcme4HkDdHFnZH4IZ8u",
"currency": "CNY",
"updated_at": "2021-07-30T07:43:48.000000Z",
"created_at": "2021-07-30T07:43:48.000000Z",
"id": 7
},
"error": {}
}
```
> [color=#e88f4c] 返回 validation
``` JSON
{
"status": "error",
"code": 403,
"message": "姓名 至少为 2 个字符。账号 已经存在。账号 至少为 2 个字符。",
"data": {},
"error": {}
}
```
> [color=#e88f4c] 返回 确认密码错误
``` JSON
{
"status": "error",
"code": 403,
"message": "親愛的客戶您好:确认密码错误,請再嘗試一次",
"data": {},
"error": {}
}
```
``` JSON
{
"status": "error",
"code": 403,
"message": "无效的推荐码。",
"data": {},
"error": {}
}
```
---
### 使用者登入 Method:POST
* ### /api/auth/login
> [color=#b595e5] 輸入參數
| 參數名稱 | 類型 |必填|說明|備註|
| - | - | - | - | - |
| account| String | Y | 帳號 |
| password | String | Y | 密碼 | |
| login_domain | String | N | 登入網域 |
| ip | String | N | IP |
| country_name | String | N | 國家 |
| city_name | String | N | 城市 |
| remark | String | N | 登入備註 |
> [color=#e88f4c] 返回 JSON
``` JSON
{
"status": "success",
"code": 200,
"message": "",
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6MTExMVwvYXBpXC9hdXRoXC9sb2dpbiIsImlhdCI6MTYyNzYzMTI2NSwiZXhwIjoxNjI3NjM0ODY1LCJuYmYiOjE2Mjc2MzEyNjUsImp0aSI6Ik4xTmpKck1JdVpld2lhS1UiLCJzdWIiOjcsInBydiI6IjM3YjdjNTBiMjUwNDFhNGMyMGZlNDdjMjQyZTFiZmQwZjYzMDkyYzUifQ.M1PWo63VpFSjshSVY0nYp70owJjcntmGh43xzz2KToI",
"token_type": "bearer",
"expires_in": 3600
},
"error": {}
}
```
> [color=#e88f4c] 返回 您的账号已锁定
``` JSON
{
"status": "error",
"code": 403,
"message": "親愛的客戶您好:您的账号已锁定",
"data": {},
"error": {}
}
```
---
### 使用者登出 Method:POST
* ### /api/auth/logout
>* 輸入參數
> [color=#b595e5] Token
> [color=#e88f4c] 返回 JSON
``` JSON
{
"status": "success",
"code": 200,
"message": "Successfully Logged Out",
"data": {},
"error": {}
}
```
> [color=#e88f4c] 返回 再次进行登入
``` JSON
{
"status": "error",
"code": 403,
"message": "親愛的客戶您好:請再次进行登入",
"data": {},
"error": {}
}
```
---
---
### 使用者帳戶資料 Method:POST
* ### /api/auth/me
>* 輸入參數
> [color=#b595e5] Token
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "",
"data": {
"id": 14,
"agent_id": 1,
"level_id": 1,
"status_withdraw": 1,
"status_account": 1,
"recommend_code": "9OZpUz",
"recommended_code": null,
"name": "aaaa",
"account": "1",
"password": "$2y$10$F.h6L8E0z6bbqYbfrZoK9.RMkR/M0XMfK1o7HZyWfolyeFyrsJEKu",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6MTExMVwvYXBpXC9hdXRoXC9sb2dpbiIsImlhdCI6MTYyOTk0NDc1NiwiZXhwIjoxNjMwMDMxMTU2LCJuYmYiOjE2Mjk5NDQ3NTYsImp0aSI6ImtLR25PWk1SRWExbVJrYloiLCJzdWIiOjE0LCJwcnYiOiIzN2I3YzUwYjI1MDQxYTRjMjBmZTQ3YzI0MmUxYmZkMGY2MzA5MmM1In0.emeyTjWbUmHzf7LHVxY_X17BljSnkPXZrZ0R-0euyJg",
"currency": "CNY",
"amount": "0.00000000",
"company_win_lose": null,
"cost_occupancy": null,
"flag": null,
"remark": null,
"deposit_count": null,
"withdraw_count": null,
"deposit_amount": null,
"withdraw_amount": null,
"first_deposit_at": null,
"first_deposit_amount": null,
"last_deposit_at": null,
"last_deposit_amount": null,
"last_bonus_at": null,
"last_bonus_amount": null,
"created_at": "2021-08-02 19:00:15",
"updated_at": "2021-08-26T02:25:56.000000Z",
"deleted_at": null,
"money_withdraw_count": 0,
"player_bonus_wallet_sum": 0,
"total_money": 0,
"player_detail": {
"id": 5,
"player_id": 14,
"sex": 1,
"email": "33",
"email_code": null,
"email_status": 0,
"phone": "0921031249",
"phone_code": null,
"phone_status": 0,
"ip": "182.1.2.3",
"qq": "123123",
"telegram": "123123",
"birthday": "2019-02-12",
"wechat": "123",
"whatsapp": "123",
"facebook": "123",
"line": "123",
"created_at": "2021-08-02T19:00:15.000000Z",
"updated_at": "2021-08-23T03:46:45.000000Z"
},
"player_bonus_wallet": [
{
"id": 0,
"name": "主錢包",
"money": "0.00000000"
}
],
"player_blacklist": {
"id": 6,
"user_id_created": 1,
"user_id_updated": null,
"player_id": 14,
"game_platform_id": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17"
],
"game_platform_code": [
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"1",
"ICG",
"ICG",
"PIN",
"PIN",
"AB",
"AB"
],
"currency": "CNY",
"type": [
"1",
"2"
],
"remark": null,
"created_at": "2021-09-16 17:23:49",
"updated_at": "2021-09-16 17:23:49"
},
"level": {
"id": 1,
"bonus_id": 1,
"third_payments_id": null,
"bank_cards_id": [
"2",
"6"
],
"name": "預設層級",
"name_frontend": "預設層級",
"if_default_level": 1,
"if_show_frontend": 1,
"status": 1,
"remark": "預設層級",
"sort": 0,
"created_at": "2021-08-17 06:56:04",
"updated_at": "2021-08-26 02:39:35",
"deleted_at": null,
"level_deposit_setting": {
"id": 1,
"level_id": 1,
"third_max_deposit_amount": "1.00000000",
"third_max_deposit_count": 2,
"atm_max_deposit_count": 3,
"atm_max_per_amount": "4.00000000",
"atm_min_per_amount": "5.00000000",
"qrcode_max_deposit_count": 6,
"qrcode_max_per_amount": "7.00000000",
"qrcode_min_per_amount": "8.00000000",
"ebank_max_deposit_count": 9,
"ebank_max_per_amount": "10.00000000",
"ebank_min_per_amount": "1.00000000",
"deposit_default_flow": "2.00000000",
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:40:07.000000Z"
},
"level_platform_setting": [
{
"id": 1,
"level_id": 1,
"game_platform_id": 1,
"type": [
"1"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 2,
"level_id": 1,
"game_platform_id": 2,
"type": [
"2"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 3,
"level_id": 1,
"game_platform_id": 3,
"type": [
"1"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 4,
"level_id": 1,
"game_platform_id": 4,
"type": [
"1",
"2"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 5,
"level_id": 1,
"game_platform_id": 5,
"type": [
"2"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 6,
"level_id": 1,
"game_platform_id": 6,
"type": [
"2"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 7,
"level_id": 1,
"game_platform_id": 7,
"type": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 8,
"level_id": 1,
"game_platform_id": 8,
"type": [
"2"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 9,
"level_id": 1,
"game_platform_id": 9,
"type": [
"2"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 10,
"level_id": 1,
"game_platform_id": 10,
"type": [
"2"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 11,
"level_id": 1,
"game_platform_id": 11,
"type": [
"1",
"2"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 12,
"level_id": 1,
"game_platform_id": 12,
"type": [
"1",
"2"
],
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:30.000000Z"
},
{
"id": 13,
"level_id": 1,
"game_platform_id": 13,
"type": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-17T06:56:04.000000Z"
}
],
"level_rebate_setting": [
{
"id": 1,
"level_id": 1,
"game_platform_id": 1,
"game_id": 1,
"status": 1,
"max_per_rebate": null,
"rebate_ratio": "1.00000000",
"multiple_rebate_ratio": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:51.000000Z"
},
{
"id": 2,
"level_id": 1,
"game_platform_id": 1,
"game_id": 2,
"status": 1,
"max_per_rebate": null,
"rebate_ratio": "3.00000000",
"multiple_rebate_ratio": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:51.000000Z"
},
{
"id": 3,
"level_id": 1,
"game_platform_id": 1,
"game_id": 3,
"status": 1,
"max_per_rebate": null,
"rebate_ratio": "4.00000000",
"multiple_rebate_ratio": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:51.000000Z"
},
{
"id": 4,
"level_id": 1,
"game_platform_id": 1,
"game_id": 4,
"status": 1,
"max_per_rebate": null,
"rebate_ratio": "2.00000000",
"multiple_rebate_ratio": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:51.000000Z"
},
{
"id": 5,
"level_id": 1,
"game_platform_id": 2,
"game_id": 5,
"status": 1,
"max_per_rebate": null,
"rebate_ratio": "0.00000000",
"multiple_rebate_ratio": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-17T06:56:04.000000Z"
},
{
"id": 6,
"level_id": 1,
"game_platform_id": 2,
"game_id": 6,
"status": 1,
"max_per_rebate": null,
"rebate_ratio": "0.00000000",
"multiple_rebate_ratio": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-17T06:56:04.000000Z"
},
{
"id": 7,
"level_id": 1,
"game_platform_id": 3,
"game_id": 7,
"status": 1,
"max_per_rebate": null,
"rebate_ratio": "0.00000000",
"multiple_rebate_ratio": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-17T06:56:04.000000Z"
},
{
"id": 8,
"level_id": 1,
"game_platform_id": 4,
"game_id": 8,
"status": 1,
"max_per_rebate": null,
"rebate_ratio": "0.00000000",
"multiple_rebate_ratio": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-17T06:56:04.000000Z"
}
],
"level_withdraw_setting": {
"id": 1,
"level_id": 1,
"status": 0,
"max_withdraw_amount": "66.00000000",
"max_withdraw_count": 66,
"max_per_withdraw_amount": "66.00000000",
"min_per_withdraw_amount": "66.00000000",
"notice_withdraw_fee_count": null,
"created_at": "2021-08-17T06:56:04.000000Z",
"updated_at": "2021-08-26T02:39:12.000000Z"
}
},
"join_day": 24
},
"error": {}
}
}
```
> [color=#e88f4c] 返回 再次进行登入
``` JSON
{
"status": "error",
"code": 403,
"message": "親愛的客戶您好:請再次进行登入",
"data": {},
"error": {}
}
```
---
### 修改使用者帳戶資料 Method:PUT
* ### /api/auth/update
>* 輸入參數
> [color=#b595e5] Token
| 參數名稱 | 類型 |必填|說明|備註|
| - | - | - | - | - |
| status_withdraw| INT | N | 取款状态 1啟用 0停用 |
| recommended_code | String | N | 輸入的推薦碼 |
| sex| INT | N | 性別 1男 2女 |
| name | String | N | 真實姓名 |
| ip | String | N | IP |
| qq | String | N | qq |
| telegram | String | N | Telegram |
| birthday | Date | N | 生日 |
| wechat | String | N | Wechat |
| whatsapp | String | N | Whatsapp |
| facebook | String | N | Facebook |
| line | String | N | Line |
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "",
"data": {
"id": 14,
"agent_id": 1,
"level_id": 1,
"status_withdraw": 1,
"status_account": 1,
"recommend_code": "9OZpUz",
"recommended_code": null,
"name": "1",
"account": "1",
"password": "$2y$10$F.h6L8E0z6bbqYbfrZoK9.RMkR/M0XMfK1o7HZyWfolyeFyrsJEKu",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6MTExMVwvYXBpXC9hdXRoXC9sb2dpbiIsImlhdCI6MTYyOTY4OTY4MywiZXhwIjoxNjI5Nzc2MDgzLCJuYmYiOjE2Mjk2ODk2ODMsImp0aSI6IlJPbDlzZDZORUR3ektERTUiLCJzdWIiOjE0LCJwcnYiOiIzN2I3YzUwYjI1MDQxYTRjMjBmZTQ3YzI0MmUxYmZkMGY2MzA5MmM1In0.TdhOVvj3rkeBRolAcd8cIYIhVCZGce54P6zuY55CxmU",
"currency": "CNY",
"amount": "0.00000000",
"company_win_lose": null,
"cost_occupancy": null,
"flag": null,
"remark": null,
"deposit_count": null,
"withdraw_count": null,
"deposit_amount": null,
"withdraw_amount": null,
"first_deposit_at": null,
"first_deposit_amount": null,
"last_deposit_at": null,
"last_deposit_amount": null,
"last_bonus_at": null,
"last_bonus_amount": null,
"created_at": "2021-08-02T19:00:15.000000Z",
"updated_at": "2021-08-23T03:34:43.000000Z",
"deleted_at": null,
"player_detail": {
"id": 5,
"player_id": 14,
"sex": 1,
"email": "33",
"email_code": null,
"phone": "22",
"phone_code": null,
"ip": "182.1.2.3",
"qq": "123123",
"telegram": "123123",
"birthday": "2019-02-12",
"wechat": "123",
"whatsapp": "123",
"facebook": "123",
"line": "123",
"created_at": "2021-08-02T19:00:15.000000Z",
"updated_at": "2021-08-23T03:45:03.000000Z"
}
},
"error": {}
}
```
``` JSON
{
"status": "error",
"code": 403,
"message": "无效的推荐码。",
"data": {},
"error": {}
}
```
---
### 修改使用者密碼 Method:PUT
* ### /api/auth/update/password
>* 輸入參數
> [color=#b595e5] Token
| 參數名稱 | 類型 |必填|說明|備註|
| - | - | - | - | - |
| password_old | String | Y | 舊密碼 |
| password | String | Y | 新密碼 |
| password_confirm | String | Y | 新密碼驗證 |
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "密碼修改成功。",
"data": {},
"error": {}
}
```
> [color=#e88f4c] 返回 error
``` JSON
{
"status": "error",
"code": 403,
"message": "親愛的客戶您好:旧密碼输入錯誤,請再嘗試一次。",
"data": {},
"error": {}
}
```
``` JSON
{
"status": "error",
"code": 403,
"message": "親愛的客戶您好:确认密码输入错误,請再嘗試一次。",
"data": {},
"error": {}
}
```
``` JSON
{
"status": "error",
"code": 403,
"message": "親愛的客戶您好:舊密碼與新密碼一樣,請重新輸入。",
"data": {},
"error": {}
}
```
---
### 綁定使用者信箱 Method:PUT
* ### /api/auth/update/email
>* 輸入參數
> [color=#b595e5] Token
| 參數名稱 | 類型 |必填|說明|備註|
| - | - | - | - | - |
| email | String | Y | 信箱 |
| email_code | String | Y | 信箱驗證碼 |
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "信箱绑定成功。",
"data": {},
"error": {}
}
```
### 綁定使用者手機 Method:PUT
* ### /api/auth/update/phone
>* 輸入參數
> [color=#b595e5] Token
| 參數名稱 | 類型 |必填|說明|備註|
| - | - | - | - | - |
| phone | String | Y | 手機 |
| phone_code | String | Y | 手機驗證碼 |
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "手機绑定成功。",
"data": {},
"error": {}
}
```
## Activity
### 活动圖片資料 Method:GET
* ### /api/activity/pic
> [color=#e88f4c] 返回 success
``` JSON
{"status":"success",
"code":200,
"message":"",
"data":[{
"id":1,
"activity_pc_pic":"",
"activity_pc_content":"",
"activity_mb_pic":"",
"activity_picture":null
},],
"error":{}}
```
---
## Player Debit Card
### 玩家的銀行卡清單 Method:GET
* ### /api/players/debit-card/list
>* 輸入參數
> [color=#b595e5] Token
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "",
"data": [
{
"id": 1,
"player_id": 14,
"status_debit_card": 2,
"status_binding_to": 0,
"bank": "台灣銀行",
"account_name": "testAA",
"card_number": "testBB",
"province": null,
"city": null,
"market": null,
"remark": null,
"created_at": "2021-08-12T23:51:03.000000Z",
"updated_at": "2021-08-12T23:51:03.000000Z"
},
{
"id": 2,
"player_id": 14,
"status_debit_card": 2,
"status_binding_to": 0,
"bank": "台灣銀行",
"account_name": "testCC",
"card_number": "testDD",
"province": null,
"city": null,
"market": null,
"remark": null,
"created_at": "2021-08-12T23:59:36.000000Z",
"updated_at": "2021-08-12T23:59:36.000000Z"
},
{
"id": 3,
"player_id": 14,
"status_debit_card": 2,
"status_binding_to": 0,
"bank": "彰化銀行",
"account_name": "testEE",
"card_number": "testGG",
"province": "1",
"city": "2",
"market": "3",
"remark": "4",
"created_at": "2021-08-15T19:52:47.000000Z",
"updated_at": "2021-08-15T19:52:47.000000Z"
},
{
"id": 4,
"player_id": 14,
"status_debit_card": 2,
"status_binding_to": 0,
"bank": "彰化銀行",
"account_name": "testEE",
"card_number": "testGG",
"province": "1",
"city": "2",
"market": "3",
"remark": "4",
"created_at": "2021-08-15T21:09:39.000000Z",
"updated_at": "2021-08-15T21:09:39.000000Z"
}
],
"error": {}
}
```
---
### 新增玩家的銀行卡 Method:POST
* ### /api/players/debit-card/store
> [color=#b595e5] 輸入參數
| 參數名稱 | 類型 |必填|說明|備註|
| - | - | - | - | - |
| bank| String | Y | 銀行名稱 |
| account_name | String | Y | 開戶名稱 |
| card_number | String | Y | 卡號 |
| province | String | N | 省份 |
| city | String | N | 城市 |
| market | String | N | 開戶行 |
| remark | String | N | 備註 |
>* 輸入參數
> [color=#b595e5] Token
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "",
"data": {
"player_id": 14,
"status_debit_card": 2,
"status_binding_to": 0,
"bank": "彰化銀行",
"account_name": "testEE",
"card_number": "testGG",
"province": "1",
"city": "2",
"market": "3",
"remark": "4",
"updated_at": "2021-08-16T03:52:47.000000Z",
"created_at": "2021-08-16T03:52:47.000000Z",
"id": 3
},
"error": {}
}
```
---
## Bank
### 銀行列表 Method:POST
* ### /api/banks/list
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "",
"data": [
{
"id": 1,
"name": "臺灣銀行",
"status_frontend": 1,
"sort": 0,
"created_at": "2021-08-06T06:26:25.000000Z",
"updated_at": "2021-08-06T07:18:07.000000Z"
},
┅
{
"id": 51,
"name": "中華民國信用合作社聯合社南區聯合資訊處理中心",
"status_frontend": 1,
"sort": 1,
"created_at": "2021-08-06T06:26:25.000000Z",
"updated_at": "2021-08-06T07:18:07.000000Z"
}
],
"error": {}
}
```
## Messages
### 平台消息資料 Method:GET
* ### /api/messages/platform/list
> [color=#e88f4c] 返回 success
``` JSON
{"status":"success",
"code":200,
"message":"",
"data":[{
"id":1,
"title":"1",
"content":"2",
"type":0,//重要信息 0=>否 1=>是
"watch":0,//是否已觀看 0=>否 1=>是
"send_id":1,
"send_acct":"admin",
"ip":"127.0.0.1",
"created_at":"2021-09-03T02:39:48.000000Z",
"updated_at":"2021-09-03T02:39:48.000000Z"
}]
"error":{}}
```
---
### 玩家消息資料 Method:GET
* ### /api/messages/player/list
> [color=#e88f4c] 返回 success
``` JSON
{"status":"success",
"code":200,
"message":"",
"data":[{
"id":1,
"player_id":1,
"player_acct":"kennyag",
"player_name":"kennyag",
"title":"\u6d88\u606f\u6a19\u984c",
"content":"\u6d88\u606f\u5167\u5bb9",
"type":0,//重要信息 0=>否 1=>是
"watch":0,//是否已觀看 0=>否 1=>是
"send_id":1,
"send_acct":"admin",
"ip":"127.0.0.1",
"created_at":"2021-09-03T02:43:11.000000Z",
"updated_at":"2021-09-03T02:43:11.000000Z"
}]
"error":{}}
```
---
## Finance
### 公司銀行卡列表 Method:Get
* ### /api/finance/bank-card/show
>* 輸入參數
> [color=#b595e5] Token
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "",
"data": [
{
"id": 1,
"bank_id": 155,
"bank_qrcode_id": null,
"currency": "CNY",
"max_per_amount": null,
"min_per_amount": null,
"level_bank_card_setting_web": {
"id": 47,
"level_id": 1,
"bank_card_id": 1,
"sort": 0,
"show_position": 1,
"if_default": 1,
"status": 1,
"created_at": "2021-09-09T13:24:59.000000Z",
"updated_at": "2021-09-09T13:24:59.000000Z",
"deleted_at": null
},
"bank": {
"id": 155,
"name": "臺灣土地銀行",
"status_frontend": 0,
"sort": 1,
"created_at": "2021-08-16T09:05:41.000000Z",
"updated_at": "2021-08-27T03:32:03.000000Z"
}
},
],
"error": {}
}
```
---
### 三方列表 Method:Get
* ### /api/finance/bank-third-payment/show
>* 輸入參數
> [color=#b595e5] Token
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "",
"data": [
{
"bank_third_id": 1,
"bank_tunnel_id": 1,
"max_per_amount": "22222.00000000",
"min_per_amount": "1.00000000",
"id": 1,
"level_id": 1,
"bank_third_payment_id": 1,
"third_sort": 0,
"tunnel_sort": 0,
"show_position": 1,
"rotate": null,
"if_default": 1,
"status": 1,
"created_at": "2021-09-10T06:27:28.000000Z",
"updated_at": "2021-09-10T06:27:29.000000Z",
"deleted_at": null,
"bank_third": {
"id": 1,
"name_frontend": "ST-BET",
"name": "ST-BET",
"status": 1,
"created_at": "2021-08-20T07:53:39.000000Z",
"updated_at": "2021-09-08T09:11:19.000000Z",
"currency": "TWD"
},
"bank_tunnel": {
"id": 1,
"name_frontend": "網銀",
"name": "網銀",
"status": 1,
"created_at": "2021-08-20T07:53:39.000000Z",
"updated_at": "2021-09-09T05:41:38.000000Z"
}
},
],
"error": {}
}
```
---
### 產生付款單 Method:Post
* ### /api/finance/recharge/create
>* 輸入參數
> [color=#b595e5] Token
| 參數名稱 | 類型 |必填|說明|備註|
| - | - | - | - | - |
| type| String | Y | 類別 | 0是銀行 1是三方
| money | String | Y | 金額 |
| player_bank_card_id | String | Y | 玩家銀行卡id |
| bankcard_id | String | N | 公司銀行卡id |
| bank_third_payment_id | String | N | 三方id |
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "",
"data": {
"result": "success",
"key": "613b16c1cb788"
},
"error": {}
}
```
---
### 取得付款單資訊 Method:Get
* ### /api/finance/transaction/{key}
>* 輸入參數
> [color=#b595e5] Token
> [color=#e88f4c] 返回 success
``` JSON
{
"status": "success",
"code": 200,
"message": "",
"data": {
"type": 0,
"data": {
"money": "3.00",
"tradeno": "2021091114564432273",
"payname": "1",
"paybankname": "臺灣銀行",
"paybanknum": "1",
"payremark": "1",
"paycomment": null,
"paymarket": "1" //行
}
},
"error": {}
}
or
{
"status": "success",
"code": 200,
"message": "",
"data": {
"money": "3.00",
"tradeno": "2021091114564432273",
"type": 1,
"data": {
"url": "https://api.st-bet.com/storereceive/info?tradeno=2021091016263812216&token=44d2f53d0f7fccb40a1d949bbc202752"
}
},
"error": {}
}
```