首页资讯
<p><strong>简要描述:</strong> </p>
<ul>
<li>首页资讯数据接入</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/cron/data/home-data</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</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>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">json</td>
<td>数据</td>
</tr>
</tbody>
</table>
<p><strong>参数示例:</strong> </p>
<pre><code>{
"data": [
{
"info_type": "资讯类型", //默认为1 暂定
"info_title": "即开资讯", //资讯标题
"info_content":"1234555555555555555", //资讯内容
"info_time": "2018-08-14 11:11:11", //资讯发布时间
"info_img1": "资讯相关图片", // 数据可为空
"info_img2": "资讯相关图片", // 数据可为空
"info_img3": "资讯相关图片", // 数据可为空
"info_img4": "资讯相关图片", // 数据可为空
}
]
}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code> {
“code”:600,
"msg":"数据写入成功",
"result":""
}</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>