商品详情接口
<h4><strong>简要描述:</strong></h4>
<p>商品详情信息接口</p>
<h4><strong>请求URL:</strong></h4>
<p><code>http://平台域名/api/v1/goods/info</code></p>
<h4><strong>请求方式:</strong></h4>
<p><code>POST</code></p>
<h4><strong>请求参数:</strong></h4>
<table>
<thead>
<tr>
<th>Header 参数</th>
<th>类型</th>
<th>是否必填</th>
<th>描述</th>
<th>示例值</th>
</tr>
</thead>
<tbody>
<tr>
<td>Sign</td>
<td>string</td>
<td>是</td>
<td>签名</td>
<td>[点击查看签名规范](<a href="https://doc.kasushou.com/api/v2api/39">https://doc.kasushou.com/api/v2api/39</a> " 点击查看签名规范")</td>
</tr>
<tr>
<td>Timestamp</td>
<td>string</td>
<td>是</td>
<td>13位时间戳(毫秒)</td>
<td>1696644296195</td>
</tr>
<tr>
<td>UserId</td>
<td>string</td>
<td>是</td>
<td>您的用户编号</td>
<td>10000</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Body 参数</th>
<th>类型</th>
<th>是否必填</th>
<th>描述</th>
<th>示例值</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>int</td>
<td>是</td>
<td>商品ID</td>
<td>1</td>
</tr>
</tbody>
</table>
<h4><strong>签名示例:</strong></h4>
<p><code>1696654563249{&quot;id&quot;:1}e3yw37fe2zhb4wb6p2zzmxerpr835pjy</code></p>
<h4><strong>返回示例:</strong></h4>
<ol>
<li><code>{</code></li>
<li><code>&quot;code&quot;: 200,</code></li>
<li><code>&quot;msg&quot;: &quot;成功&quot;,</code></li>
<li><code>&quot;data&quot;: {</code></li>
<li><code>&quot;id&quot;: 1,</code></li>
<li><code>&quot;goods_name&quot;: &quot;test自营手工&quot;,</code></li>
<li><code>&quot;goods_img&quot;: &quot;http://img.kasushou.com/Uploads%2FAttachment%2F2022-10-25%2F63578b642b6c1.jpg&quot;,</code></li>
<li><code>&quot;goods_type&quot;: 2,</code></li>
<li><code>&quot;face_value&quot;: &quot;2.00&quot;,</code></li>
<li><code>&quot;goods_price&quot;: &quot;2.00&quot;,</code></li>
<li><code>&quot;status&quot;: 1,</code></li>
<li><code>&quot;stock_num&quot;: 9999,</code></li>
<li><code>&quot;goods_info&quot;: &quot;测试商品详情内容&quot;,</code></li>
<li><code>&quot;goods_notice&quot;: &quot;&quot;,</code></li>
<li><code>&quot;start_count&quot;: 1,</code></li>
<li><code>&quot;end_count&quot;: 10,</code></li>
<li><code>&quot;attach&quot;: [</code></li>
<li><code>{</code></li>
<li><code>&quot;key&quot;: &quot;recharge_account&quot;,</code></li>
<li><code>&quot;type&quot;: &quot;text&quot;,</code></li>
<li><code>&quot;tip&quot;: &quot;测试1&quot;,</code></li>
<li><code>&quot;name&quot;: &quot;测试1&quot;</code></li>
<li><code>},</code></li>
<li><code>{</code></li>
<li><code>&quot;key&quot;: &quot;lblName1&quot;,</code></li>
<li><code>&quot;type&quot;: &quot;text&quot;,</code></li>
<li><code>&quot;tip&quot;: &quot;测试2&quot;,</code></li>
<li><code>&quot;name&quot;: &quot;测试2&quot;</code></li>
<li><code>}</code></li>
<li><code>]</code></li>
<li><code>}</code></li>
<li><code>}</code></li>
</ol>
<h4><strong>返回data说明:</strong></h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>int</td>
<td>商品ID</td>
</tr>
<tr>
<td>goods_name</td>
<td>string</td>
<td>商品名称</td>
</tr>
<tr>
<td>goods_img</td>
<td>string</td>
<td>商品图片</td>
</tr>
<tr>
<td>goods_type</td>
<td>int</td>
<td>商品类型:1=卡密商品,2=虚拟商品</td>
</tr>
<tr>
<td>face_value</td>
<td>string</td>
<td>商品面值</td>
</tr>
<tr>
<td>goods_price</td>
<td>string</td>
<td>商品价格</td>
</tr>
<tr>
<td>status</td>
<td>int</td>
<td>商品状态:1=销售,2=暂停,3=禁售</td>
</tr>
<tr>
<td>stock_num</td>
<td>int</td>
<td>商品库存</td>
</tr>
<tr>
<td>goods_info</td>
<td>string</td>
<td>商品详情</td>
</tr>
<tr>
<td>goods_notice</td>
<td>string</td>
<td>注意事项</td>
</tr>
<tr>
<td>start_count</td>
<td>int</td>
<td>最小购买数量</td>
</tr>
<tr>
<td>end_count</td>
<td>int</td>
<td>最大购买数量</td>
</tr>
<tr>
<td>attach</td>
<td>array</td>
<td>虚拟商品下单模板(卡密商品此数组为空)</td>
</tr>
</tbody>
</table>
<h4><strong>返回attach说明:</strong></h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>key</td>
<td>string</td>
<td>下单参数模板变量名</td>
</tr>
<tr>
<td>type</td>
<td>string</td>
<td>类型:text=文本,password=密码框,checkbox=多选框,select=下拉,radio=单选框,cascader=级联组合</td>
</tr>
<tr>
<td>tip</td>
<td>string</td>
<td>下单参数提示信息</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>下单参数名称</td>
</tr>
<tr>
<td>options</td>
<td>string</td>
<td>多选框、单选框、下拉框、 级联组合类型才存在此参数,其他类型无此参数</td>
</tr>
</tbody>
</table>