商品详情
<h2>获取商品信息</h2>
<h2>请求方式</h2>
<pre><code>POST```
## 请求地址</code></pre>
<p><a href="http://域名/api.php">http://域名/api.php</a>```</p>
<h2>签名算法</h2>
<pre><code> md5( user_id + gid + api_key );```
## 请求地址</code></pre>
<p><a href="http://域名/api.php">http://域名/api.php</a>```</p>
<h4>请求参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>func</td>
<td>是</td>
<td>方法名称,固定值:goods_info</td>
</tr>
<tr>
<td>user_id</td>
<td>是</td>
<td>用户ID,同APPID</td>
</tr>
<tr>
<td>gid</td>
<td>是</td>
<td>商品ID</td>
</tr>
<tr>
<td>sign</td>
<td>是</td>
<td>签名</td>
</tr>
</tbody>
</table>
<h4>返回示例</h4>
<pre><code class="language-json">{
&quot;code&quot;: 1,
&quot;msg&quot;: &quot;获取成功&quot;,
&quot;data&quot;: {
&quot;id&quot;: 44,
&quot;name&quot;: &quot;健力宝 绿色(460ML) 新号第一次必中3再买一码激活 与红色不冲突&quot;,
&quot;images&quot;: &quot;https: //niu.eaqian.cn/upload/admin/1/image/20250112/6783d274e51b.png&quot;,
&quot;price&quot;: &quot;1.00&quot;,
&quot;statustr&quot;: &quot;出售中&quot;,
&quot;status&quot;: 1,
&quot;sales&quot;: 461,
&quot;api_price&quot;: null
}
}</code></pre>
<h4>返回参数说明</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>固定返回1</td>
</tr>
<tr>
<td>msg</td>
<td>操作提示</td>
</tr>
<tr>
<td>id</td>
<td>商品ID</td>
</tr>
<tr>
<td>name</td>
<td>商品名称</td>
</tr>
<tr>
<td>images</td>
<td>商品图片</td>
</tr>
<tr>
<td>price</td>
<td>商品价格</td>
</tr>
<tr>
<td>sales</td>
<td>销量</td>
</tr>
<tr>
<td>status</td>
<td>商品状态码</td>
</tr>
<tr>
<td>statustr</td>
<td>商品状态</td>
</tr>
<tr>
<td>api_price</td>
<td>对接价格</td>
</tr>
</tbody>
</table>