专题模块图片上传
<p><strong>简要描述:</strong> </p>
<ul>
<li>专题模块图片上传</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://adminapi.myfcomic.com/topic/temptopicimgupload</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;">img</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">file</td>
<td>图片流</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>1:图片模块,2:H5模块,3:音频模块,4:视频模块</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"code": 1,
"msg": "操作成功",
"data": {
"name": "topic/topic_module_img/img_url/14a7d3b947737d73b1c975a68aff6253.jpg",
"url": "http://adminapi.myfcomic.comtopic/topic_module_img/img_url/14a7d3b947737d73b1c975a68aff6253.jpg",
"OSSUrl": "http://cdnmyfcomicadmin.myfcomic.com/topic/topic_module_img/img_url/14a7d3b947737d73b1c975a68aff6253.jpg@!q90_no_make"
}
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">string</td>
<td>服务器图片路径(点提交时候传)</td>
</tr>
<tr>
<td style="text-align: left;">url</td>
<td style="text-align: left;">string</td>
<td>服务器图片url(显示时候用)</td>
</tr>
<tr>
<td style="text-align: left;">OSSUrl</td>
<td style="text-align: left;">int</td>
<td>OSS图片路径(生成专题静态html时用)</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>