### 名詞解析
* 足球 `football`
* 賽事 `match`
* 名稱 `name`
* 地址 `address`
* 國家 `country`
* 球隊 `team`
* 主隊 `host team`
* 客隊 `guest team`
* 比分 `score`
* 得分 `score`
* 勝平負 `victory and defeat`
* 滾球 `roll ball`
* 大小球 `big small ball`
* 讓球 `concede points`
* 進球 `goal`
* 未開場 `not open`
* 進行中 `have in hand`
* 已完場 `already finished`
* 上半場 `first half`
* 下半場 `second half`
* 半全場 `double result`
* 比賽時間 `start time`
* 停止投注時間(足球比賽開始前兩分鐘)`stop time`
#### 列表
> 類型,1=>勝負,2=>大小球,3=>進球,4=>比分
> 模式,1=>全場勝平負,2=>讓球勝負,3=>上半場勝平負,4=>大小球,5=>是否進球,6=>總進球,7=>下一個進球球隊,8=>下一個進球時間(分鐘),9=>全場比分
> 階段,0=>未開場,1=>上半場,2=>下半場,3=>已完場
> 狀態,10=>未開場,9=>進行中,0=>已完場
~~~[api]
get:/football/index/index
number:type=0#類型,0=>全部,1=>熱門,2=>...
number:p=1#當前頁數
number:ps=20#分頁大小
<<<
success
{
"message": "success",
"code": 1,
"data": [
{
"id": "1",
"match_name": "National League 2",
"match_address": "Martvili, 格魯吉亞",
"host_team": "馬爾特維利",
"guest_team": "FC Tskhinvali",
"host_icon": "http://91alice.oss-cn-shenzhen.aliyuncs.com/static/img/no-image.png",
"guest_icon": "http://91alice.oss-cn-shenzhen.aliyuncs.com/static/img/no-image.png",
"host_concede": "-0.5",
"guest_concede": "0",
"first_half_host_score": "1",
"first_half_guest_score": "0",
"host_score": "1",
"guest_score": "0",
"stage": "3",
"sort": "0",
"is_hot": "0",
"is_settle": "0",
"status": "0",
"created_at": "1524733200",
"updated_at": "1526222860",
"start_at": "1524733200",
"awards": {
"1": [
{
"id": "1",
"football_id": "1",
"type": "1",
"mode": "1",
"value": "1",
"odds": "1",
"sort": "1",
"is_starting": "0",
"status": "10",
"created_at": "1514736000",
"updated_at": "1514736000"
}
]
}
}
],
"_meta": {
"totalCount": 1,
"pageCount": 1,
"currentPage": 1,
"perPage": 100
}
}
<<<
error
~~~
#### 詳情
~~~[api]
get:/football/index/retrieve
*number:id#主鍵
<<<
success
{
"message": "success",
"code": 1,
"data": {
"id": "1",
"match_name": "National League 2",
"match_address": "Martvili, 格魯吉亞",
"host_team": "馬爾特維利",
"guest_team": "FC Tskhinvali",
"host_icon": "http://91alice.oss-cn-shenzhen.aliyuncs.com/static/img/no-image.png",
"guest_icon": "http://91alice.oss-cn-shenzhen.aliyuncs.com/static/img/no-image.png",
"host_concede": "-0.5",
"guest_concede": "0",
"first_half_host_score": "1",
"first_half_guest_score": "0",
"host_score": "1",
"guest_score": "0",
"stage": "3",
"sort": "0",
"is_hot": "0",
"is_settle": "0",
"status": "0",
"created_at": "1524733200",
"updated_at": "1526222860",
"start_at": "1524733200",
"awards": {
"1": [
{
"id": "1",
"football_id": "1",
"type": "1",
"mode": "1",
"value": "1",
"odds": "1",
"sort": "1",
"is_starting": "0",
"status": "10",
"created_at": "1514736000",
"updated_at": "1514736000"
}
]
}
}
}
~~~
#### 投注
~~~[api]
post:/football/index/betting?id=:id
*number:award_id#獎項ID
*number:point#積分
<<<
success
{
"message": "success",
"code": 1,
"data": {
"point": 9700
}
}
<<<
error
~~~
#### 投注記錄
~~~[api]
get:/football/index/betteds
<<<
success
{
"message": "success",
"code": 1,
"data": [
{
"id": "40",
"football_id": "1",
"award_id": "20",
"member_id": "6",
"point": "100",
"record": {
"host_score": "0",
"guest_score": "0"
},
"is_start": "1",
"is_calc": "1",
"is_winning": "1",
"status": "10",
"created_at": "1526222163",
"updated_at": "1526222163",
"mode_text": "下一個進球球隊 - 主隊",
"host_team": "馬爾特維利",
"guest_team": "FC Tskhinvali",
"host_score": "1",
"guest_score": "0",
"first_half_host_score": "1",
"first_half_guest_score": "0"
}
],
"_meta": {
"totalCount": 1,
"pageCount": 1,
"currentPage": 1,
"perPage": 20
}
}
~~~
#### 投注記錄詳情
~~~[api]
get:/football/index/betted
*number:id#主鍵
<<<
success
{
"message": "success",
"code": 1,
"data": {
"id": "28",
"football_id": "1",
"award_id": "21",
"member_id": "6",
"point": "100",
"record": {
"host_score": "0",
"guest_score": "0"
},
"is_start": "1",
"is_calc": "1",
"is_winning": "0",
"status": "10",
"created_at": "1526222165",
"updated_at": "1526222165",
"mode_text": "下一個進球球隊 - 無進球",
"host_team": "馬爾特維利",
"guest_team": "FC Tskhinvali",
"host_score": "1",
"guest_score": "0",
"first_half_host_score": "1",
"first_half_guest_score": "0"
}
}
~~~