获取产品类型和产品分类
<p>> POST <a href="https://gitee.com/link?target=http%3A%2F%2F%25E5%259F%259F%25E5%2590%258D%2Fyrapi.php%2Findex%2Ftypecate"><a href="http://域名/api/index/typecate">http://域名/api/index/typecate</a></a></p>
<h3><a href="https://gitee.com/dayuanren/rechargev2doc/blob/master/V2.md#%E8%AF%B7%E6%B1%82%E4%BD%93request-body-2"></a>请求体(Request Body)</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>数据类型</th>
<th>示例</th>
<th>不为空</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>userid</td>
<td>string</td>
<td>1001</td>
<td>true</td>
<td>商户ID</td>
</tr>
<tr>
<td>sign</td>
<td>string</td>
<td>JCXHF8S66BO6MPG5JNW2DGEJ9SB3F7ST</td>
<td>true</td>
<td>签名</td>
</tr>
</tbody>
</table>
<h3><a href="https://gitee.com/dayuanren/rechargev2doc/blob/master/V2.md#%E5%93%8D%E5%BA%94%E4%BD%93-2"></a>响应体</h3>
<p>● 响应数据格式:JSON</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>类型</th>
<th>示例</th>
<th>不为空</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>errno</td>
<td>string</td>
<td>*</td>
<td>true</td>
<td>返回0</td>
</tr>
<tr>
<td>errmsg</td>
<td>string</td>
<td>*</td>
<td>true</td>
<td>错误描述</td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>*</td>
<td>true</td>
<td>errno=0时 返回数据</td>
</tr>
<tr>
<td>⇥ id</td>
<td>string</td>
<td>*</td>
<td>true</td>
<td>产品类型id</td>
</tr>
<tr>
<td>⇥ type_name</td>
<td>string</td>
<td>*</td>
<td>true</td>
<td>产品类型名称</td>
</tr>
<tr>
<td>⇥ cate</td>
<td>array</td>
<td>*</td>
<td>true</td>
<td>分类列表</td>
</tr>
<tr>
<td>⇥⇥ id</td>
<td>int</td>
<td>*</td>
<td>true</td>
<td>分类ID</td>
</tr>
<tr>
<td>⇥⇥ cate</td>
<td>string</td>
<td>*</td>
<td>true</td>
<td>分类名称</td>
</tr>
<tr>
<td>⇥⇥ type</td>
<td>string</td>
<td>*</td>
<td>true</td>
<td>产品类型ID</td>
</tr>
</tbody>
</table>