ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 获取所有分类下的商品列表 [TOC] ~~~[api] post:http://xxxxxx.com/api/goods/getGoods *username=默认值#用户名 *is_automatic=0#0获取所有 1卡密商品 2手工商品 获取所有一定要传0 *class_is_show=1#传1=根据目录显示商品;一定要传 *sign=sadsadasdweqweqweqwe#密钥 具体加密方法查看附加信息 <<< success { "code": 0, "message": "SUCCESS", "data": [{ "category_id": 1, "sort": 0, "category_name": "分类名称", "category_status": 1, "category_img": "分类图片", "goods": [{ "goods_id": 1, "sort": 0, "goods_categoryid": 2, "goods_name": "源分享会员卡密包月会员充值卡密", "goods_salenum": 58, "goods_kucun": 0, "goods_status": 1, "is_automatic": 1, "goods_describe": "", "goods_thumbnail": "", "goods_buymax": 2, "goods_buymin": 1, "goods_buydouble": 1, "goods_str1": "源分享", "goods_str2": “标签颜色”, "money": "27.00", "count": "20", "template_content": "-1", }, { "goods_id": 3, "sort": 0, "goods_categoryid": 2, "goods_name": "源分享会员卡密包月会员充值卡密", "goods_salenum": 58, "goods_kucun": 0, "goods_status": 1, "is_automatic": 1, "goods_describe": "", "goods_thumbnail": "", "goods_buymax": 2, "goods_buymin": 1, "goods_buydouble": 1, "goods_str1": "源分享", "goods_str2": “标签颜色”, "money": "27.00", "count": "20", "template_content": "-1", }] }, { "category_id": 6, "sort": 0, "category_name": "分类2", "category_status": 1, "category_img": "", "goods": [{ "goods_id": 2, "sort": 0, "goods_categoryid": 2, "goods_name": "源分享会员卡密包月会员充值卡密", "goods_salenum": 58, "goods_kucun": 0, "goods_status": 1, "is_automatic": 1, "goods_describe": "", "goods_thumbnail": "", "goods_buymax": 2, "goods_buymin": 1, "goods_buydouble": 1, "goods_str1": "源分享", "goods_str2": “标签颜色”, "money": "27.00", "count": "20", "template_content": "-1", }] }] } <<< error { "code": -1 //失败, "message": "验签错误", "data": { "author": "LWCMS", "qq": "xxxxxxx", "host": "http://ccfk.cc" } } ~~~ > 返回结果说明:成功:{"code":0,"message":"交易成功","data":{....}}失败:{"code":-1,"message":"签名错误"} | 字段名 | 变量名 | 类型 | 示例值 | 描述 | | --- | --- | --- | --- | --- | | 返回状态码 | code | Int | 0 | 0为成功,其它值为失败 | | 返回消息提示 | message | String | 下单成功 | 状态码为0时返回下单成功,不为0时返回错误提示 | > 返回参数data参数说明 | 字段名 | 描述 | | --- | --- | | category\_name | 分类名称 | | sort | 分类排序 | | category\_img | 商品图片 | | goods | 商品列表 | > 返回参数data.goods参数说明 | 字段名 | 描述 | | --- | --- | | goods\_id | 商品id | | sort | 排序 | | goods\_categoryid | 商品分类 | | pay\_no | 订单号 | | goods\_name | 1卡密商品 2手工商品 | | kami | 商品名称 | | goods\_salenum | 商品名称 | | goods\_kucun | 库存 无限-1 0 缺货 大于 0显示个数 | | goods\_status | 1上架 2下架 | | is\_automatic | 1卡密商品 2手工商品 | | goods\_describe | 商品描述 | | goods\_thumbnail | 商品主图 | | goods\_buymax | 最大购买数量 | | goods\_buymin | 最小购买数量 | | goods\_buydouble | 卡密倍数 | | goods\_str1 | 商品标签 | | goods\_str2 | 标签颜色 | | money | 成本进货价统一取这个这个就是已经算好了的当前等级成本价 | | count | 20-卡密商品 | | template\_content | 商品模板 卡密商品为-1 (商品模版 -1 代表没有 ;卡密商品没有模版不用取手工模版参数见 附加信息 或者自己调用接口查看 ) |