ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 获取商品详情接口 通过客户编号+商品id返回该商品详细信息 * * * #### ****请求地址**** | 请求地址 | 请求方式 | | --- | --- | | [http://平台域名/api.php/buyer/getGood](http://xn--kproc07moyi/api.php/buyer/getGood) | POST | #### ****请求参数**** | 参数 | 类型 | 是否必填 | 描述 | 示例值 | | --- | --- | --- | --- | --- | | customerid | int | 是 | 用户编号 | 10000 | | goodsid | int | 是 | 商品id | 1 | | sign | string | 是 | 接口签名( 32位小写md5),计算方法:Md5(customerid +goodsid+key) | ccdf0b5a69133d952202b617b4cb4da5 | #### ****返回格式示例**** ~~~ { "code": 1000, "info": "请求成功", "data":[{ "id": 132761531, "number": 21409022458040588, "name": "商品名称1", "type":1, "price": 1, "money": 1, "min":1, "max":10, "note":"注意事项", "desc":"商品介绍", "count":10, "status": 1, "img":"商品图片地址", "templates":"充值模板名称", "tpl":[{ "name": "模版名称1", "type": "text", "value": "文本输入框提示", }, { "name": "模版名称2", "type": "radio", "value": "选定值", }], }] } ~~~ #### ****返回参数说明**** | 编号 | 参数 | 描述 | | --- | --- | --- | | 1 | code | 返回码 | | 2 | info | 返回信息描述 | | 3 | data | 商品详情 | | 3-1 | id | 商品id | | 3-2 | number | 商品编号 | | 3-3 | name | 商品名称 | | 3-4 | type | 商品类型:1、卡密;2、人工代充 | | 3-5 | price | 商品面值 | | 3-6 | money | 购买价格 | | 3-7 | min | 单次最小购买数量 | | 3-8 | max | 单次最大购买数量 | | 3-9 | note | 商品注意事项 | | 3-10 | desc | 商品介绍 | | 3-11 | count | 商品库存卡密 | | 3-12 |status | 商品状态:1、销售;2、暂停;3、是下架 | 3-13 | img | 商品封面图片地址 | | 3-14 | templates | 人工类商品充值模板名称 | | 3-15 | tpl | 充值模板详细内容 | | 3-15-1 | name | 充值模板内容名称1 | | 3-15-2 | type | 充值模板内容1类型,text为文本输入框,password为密码输入框,radio为单选类型,select为下拉类型 | | 3-15-3 | value | 当type为text时,value为输入框提示内容,当type为password时,不返回value值,当type为radio或select类型时,value为选项内容,内容已英文状态下逗号","分割,例:1,2,3,4 |