注单拉取
<p><strong>简要描述:</strong></p>
<ul>
<li>注单拉取</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://xxx.xxx.com/apiopen/get_bill/{bill_id}</code> 后台接口</li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET</li>
</ul>
<p><strong> PATHINFO 传参方式:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
<th style="text-align: left;">规则</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">bill_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>对接方已经存在的最大注单ID</td>
<td style="text-align: left;">string</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"res": true,
"msg": "",
"data": [
{
"id": "23679290", // bill_id
"userid": "53429",
"username": "19910923", // 用户名
"a_uid": "3",
"b_uid": "4",
"c_uid": "5",
"d_uid": "6",
"e_uid": "7",
"game_code": "260", // 游戏game_code
"type_code": "3012",
"happy8": "3001",
"round": "20191003001", // 下注期号
"drop_money": "55", // 下注金额
"drop_content": "",
"total": "55", // 总投注额
"valid_money": "55", // 有效投注
"user_win": "-55", // 输赢结果
"user_cut": "100",
"user_rate": "1.99", // 下注赔率
"xq_rate": null,
"a_cut": "100",
"b_cut": "100",
"c_cut": "100",
"d_cut": "100",
"e_cut": "100",
"a_profit": "100",
"b_profit": "0",
"c_profit": "0",
"d_profit": "0",
"e_profit": "0",
"count_pay": "1",
"count": "1", // 结算状态
"cancel": "0", // 是否取消
"pankou": "A",
"cp_type": "0",
"bet_ip": "223.74.41.25", // 下注IP
"bet_time": "1570032005", // 下注时间戳
"replenishtype": "0",
"m_name": null,
"xq_de_id": "0",
"status": "0",//无用
"moneyf": "219.45",
"count_status": "1",
"order_number": "0bff213701df8ea290c304b012c3f318",
"detail": "<span style='color:blue'>冠军『 小』</span> @ <span style='color:red'>1.99</span>", // 下注详情
"game_name": "88赛马" // 下注游戏
}
]
}</code></pre>
<p><strong> 拉取说明:</strong></p>
<ul>
<li>原理: 按照彩票站点的注单自增ID<code>排序</code>拉取 每次都拉取比对接方已经存在的最大ID还大的若干条</li>
<li>优点: 注单延续性不受宕机等因素影响</li>
<li>第一次拉注单 注单ID请传0 例如 <code>http://xxx.xxx.com/apiopen/get_bill/0</code></li>
<li>对接方一定要设计存入每条注单的 <code>id</code> 字段</li>
<li>拉取最新的注单 请每次都传入 <code>已经存在的最大的注单ID</code> 这个值就是注单里面的<code>id</code>字段</li>
</ul>
<p><strong>返回参数说明:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">count_status</td>
<td style="text-align: left;">0-已下注,1-已结算,2-已结注单注销后恢复了,3-注单注销了,4-未结注单注销后恢复了,5-已撤销结算,6-已二次结算</td>
</tr>
<tr>
<td style="text-align: left;">count</td>
<td style="text-align: left;">0-未结算,1-已结算或已注销</td>
</tr>
<tr>
<td style="text-align: left;">cancel</td>
<td style="text-align: left;">0-未注消,1-已注销</td>
</tr>
</tbody>
</table>