卡密商品下单接口
<p><strong>简要描述:</strong></p>
<ul>
<li>卡密下单接口</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://平台域名/api.php/buyer/buyCardGoodOrder</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>10000</td>
</tr>
<tr>
<td>goodsid</td>
<td>是</td>
<td>int</td>
<td>商品id</td>
<td>123</td>
</tr>
<tr>
<td>quantity</td>
<td>是</td>
<td>int</td>
<td>购买数量</td>
<td>1</td>
</tr>
<tr>
<td>tradepassword</td>
<td>否</td>
<td>string</td>
<td>交易密码</td>
<td>123456</td>
</tr>
<tr>
<td>mark</td>
<td>否</td>
<td>string</td>
<td>购买备注</td>
<td>备注信息</td>
</tr>
<tr>
<td>sign</td>
<td>是</td>
<td>string</td>
<td>接口签名( 32位小写md5),计算方法:Md5(customerid+ goodsid +key)</td>
<td>d6df0b5aadf33d886202b617b4ab4da5</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>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>是</td>
<td>1000</td>
<td>请求结果,结果码</td>
</tr>
<tr>
<td>data</td>
<td>是</td>
<td>json对象</td>
<td>订单列表</td>
</tr>
<tr>
<td>orderno</td>
<td>-</td>
<td>API21051123425634123</td>
<td>订单编号</td>
</tr>
<tr>
<td>card</td>
<td>-</td>
<td>json数组</td>
<td>卡密信息。 card_name:卡密名称;card_type:卡密类型 1卡号+密码 2密码 3链接 4链接+卡卷;card_no:card_type为1时为卡号,card_type为2时为空,card_type为3或4时为链接;card_password:密码,当card_type为2或4时为空,当card_type为4时为卡卷;card_rect:矩阵号/赠品</td>
</tr>
<tr>
<td>info</td>
<td>是</td>
<td>结果描述语</td>
<td>请求成功</td>
</tr>
</tbody>
</table>
<p><strong>返回示例:</strong></p>
<pre><code>{
"code": 1000,
"info": "下单成功",
"data":[{
"orderno":"API2021042551501024",
}]
}</code></pre>
<p><strong>返回参数说明:</strong></p>
<table>
<thead>
<tr>
<th>编号</th>
<th>参数</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>code</td>
<td>返回码</td>
</tr>
<tr>
<td>2</td>
<td>info</td>
<td>返回信息描述</td>
</tr>
<tr>
<td>3</td>
<td>date</td>
<td>商品详情</td>
</tr>
<tr>
<td>3-1</td>
<td>orderno</td>
<td>购买成功后订单编号</td>
</tr>
</tbody>
</table>
<p><strong>备注:</strong></p>
<ul>
<li>code为1000代表成功,其他为失败</li>
<li>更多返回错误代码请看首页的全局错误代码描述</li>
</ul>