获取商品详情接口
<p><strong>简要描述:</strong></p>
<ul>
<li>商品信息查询接口</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://平台域名/api.php/buyer/getGood</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
<th>示例值</th>
</tr>
</thead>
<tbody>
<tr>
<td>customerid</td>
<td>是</td>
<td>int</td>
<td>用户编号</td>
<td>1234</td>
</tr>
<tr>
<td>goodsid</td>
<td>是</td>
<td>int</td>
<td>商品id</td>
<td>1</td>
</tr>
<tr>
<td>sign</td>
<td>是</td>
<td>string</td>
<td>接口签名( 32位小写md5),计算方法:Md5(customerid +id +key)</td>
<td>ccdf0b5a69133d952202b617b4cb4da5</td>
</tr>
</tbody>
</table>
<p><strong>返回格式:</strong></p>
<ul>
<li>json</li>
</ul>
<p><strong>返回参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>1000</td>
<td>请求结果,返回码</td>
</tr>
<tr>
<td>info</td>
<td>结果描述语</td>
<td>请求成功</td>
</tr>
<tr>
<td>data</td>
<td>-</td>
<td>商品详情</td>
</tr>
<tr>
<td>id</td>
<td>1</td>
<td>商品id</td>
</tr>
<tr>
<td>number</td>
<td>1</td>
<td>商品编号</td>
</tr>
<tr>
<td>name</td>
<td>测试商品</td>
<td>商品名称</td>
</tr>
<tr>
<td>type</td>
<td>1</td>
<td>商品类型 1 卡密商品 2 代充商品</td>
</tr>
<tr>
<td>price</td>
<td>10.000</td>
<td>商品面值</td>
</tr>
<tr>
<td>money</td>
<td>10.000</td>
<td>商品价格</td>
</tr>
<tr>
<td>min</td>
<td>1</td>
<td>单次最小可下单数量</td>
</tr>
<tr>
<td>max</td>
<td>10</td>
<td>单次最大可下单数量</td>
</tr>
<tr>
<td>note</td>
<td>-</td>
<td>商品注意事项</td>
</tr>
<tr>
<td>desc</td>
<td>-</td>
<td>商品介绍</td>
</tr>
<tr>
<td>count</td>
<td>-</td>
<td>商品库存卡密</td>
</tr>
<tr>
<td>img</td>
<td>-</td>
<td>商品封面图片地址</td>
</tr>
<tr>
<td>templates</td>
<td>-</td>
<td>人工类商品充值模板名称</td>
</tr>
<tr>
<td>tpl</td>
<td>-</td>
<td>充值模板详细内容</td>
</tr>
<tr>
<td>name</td>
<td>-</td>
<td>充值模板内容名称1</td>
</tr>
<tr>
<td>type</td>
<td>-</td>
<td>充值模板内容1类型,text为文本输入框,password为密码输入框,radio为单选类型,select为下拉类型</td>
</tr>
<tr>
<td>value</td>
<td>-</td>
<td>当type为text时,value为输入框提示内容,当type为password时,不返回value值,当type为radio或select类型时,value为选项内容,内容已英文状态下逗号","分割,例:1,2,3,4</td>
</tr>
<tr>
<td>tpl</td>
<td>recharge_url_info</td>
<td>充值网址</td>
</tr>
<tr>
<td>tpl</td>
<td>url_pwd_info</td>
<td>网址密码</td>
</tr>
<tr>
<td>tpl</td>
<td>goods_status</td>
<td>商品状态</td>
</tr>
</tbody>
</table>
<p><strong>返回示例:</strong></p>
<pre><code> {
&quot;code&quot;: 1000,
&quot;info&quot;: &quot;请求成功&quot;,
&quot;data&quot;:[{
&quot;id&quot;: 132761531,
&quot;number&quot;: 21409022458040588,
&quot;name&quot;: &quot;商品名称1&quot;,
&quot;type&quot;:1,
&quot;price&quot;: 1,
&quot;money&quot;: 1,
&quot;min&quot;:1,
&quot;max&quot;:10,
&quot;note&quot;:&quot;注意事项&quot;,
&quot;desc&quot;:&quot;商品介绍&quot;,
&quot;count&quot;:10,
&quot;img&quot;:&quot;商品图片地址&quot;,
&quot;templates&quot;:&quot;充值模板名称&quot;,
&quot;tpl&quot;:[{
&quot;name&quot;: &quot;模版名称1&quot;,
&quot;type&quot;: &quot;text&quot;,
&quot;value&quot;: &quot;文本输入框提示&quot;,
}, {
&quot;name&quot;: &quot;模版名称2&quot;,
&quot;type&quot;: &quot;radio&quot;,
&quot;value&quot;: &quot;选定值&quot;,
}],
&quot;recharge_url_info&quot;:&quot;充值网址&quot;,
&quot;url_pwd_info&quot;:&quot;网址密码&quot;,
&quot;goods_status&quot;:&quot;商品状态&quot;,
}]
}</code></pre>
<p><strong>错误码:</strong></p>
<table>
<thead>
<tr>
<th>错误码</th>
<th>错误解释</th>
</tr>
</thead>
<tbody>
<tr>
<td>1010</td>
<td>无数据</td>
</tr>
<tr>
<td>其他</td>
<td>参考全局错误码</td>
</tr>
</tbody>
</table>
<p><strong>备注:</strong></p>
<ul>
<li>code为1000代表成功,其他为失败</li>
<li>更多返回错误代码请看首页的全局错误代码描述</li>
</ul>