ThinkAdmin 插件生态
  1. PluginWemall
ThinkAdmin 插件生态
  • PluginAccount
    • 微信服务号登录
      POST
    • 微信小程序登录
      POST
    • 获取图形验证码
      POST
    • 发送短信验证码
      POST
    • 手机号短信登录
      POST
    • 获取用户资料 [ 会员 ]
      POST
    • 修改账号资料 [ 会员 ]
      POST
    • 终端绑定账号 [ 会员 ]
      POST
    • 解除账号绑定 [ 会员 ]
      POST
  • PluginPyament
    • 获取我的收货地址 [ 会员 ]
    • 添加修改收货地址 [ 会员 ]
    • 设置默认收货地址 [ 会员 ]
    • 删除我的收货地址 [ 会员 ]
  • PluginWemall
    • 获取配置数据
      GET
    • 获取页面配置
      GET
    • 获取轮播配置
      GET
    • 获取配送区域
      GET
    • 获取标签分类
      GET
    • 获取商品数据
      GET
    • 操作购物车数据 [ 会员 ]
      POST
    • 获取购物车数据 [ 会员 ]
      GET
    • 获取会员折扣 [ 会员 ]
      POST
    • 创建商城订单 [ 会员 ]
      POST
    • 计算快递费用 [ 会员 ]
      POST
    • 确认订单地址 [ 会员 ]
      POST
    • 获取支付通道 [ 会员 ]
      GET
    • 获取支付参数 [ 会员 ]
      POST
    • 取消初始订单 [ 会员 ]
      POST
    • 删除无效订单 [ 会员 ]
      POST
    • 确认订单收货 [ 会员 ]
      POST
    • 获取商城订单 [ 会员 ]
      GET
    • 获取订单统计 [ 会员 ]
      GET
    • 查询订单物流 [ 会员 ]
      POST
  1. PluginWemall

获取购物车数据 [ 会员 ]

GET
/plugin-wemall/api.auth.cart/get
最后修改时间:2024-07-28 10:15:17

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/x-www-form-urlencoded
object {0}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://dev.v6.thinkadmin.top/plugin-wemall/api.auth.cart/get'

返回响应

🟢200获取购物车数据
application/json
Body
code
integer 
必需
info
string 
必需
data
object 
必需
list
array [object {10}] 
必需
示例
{
    "code": 1,
    "info": "获取购买车数据!",
    "data": {
        "list": [
            {
                "id": 5,
                "unid": 1,
                "ghash": "4ac3857e088a69a3afcadb0385ad0577",
                "gcode": "G781481257683240",
                "gspec": "默认分组::默认规格;;规格分组1::规格属性",
                "number": 2,
                "create_time": "2023年04月28日 00:11:43",
                "update_time": "2023年05月04日 17:56:43",
                "goods": {
                    "id": 1,
                    "code": "G781481257683240",
                    "name": "商品名称",
                    "marks": [
                        "test2",
                        "test"
                    ],
                    "cates": {
                        "id": 6,
                        "pid": 4,
                        "name": "test55",
                        "path": "-1-2-3-4-6",
                        "spc": 0,
                        "spt": 4,
                        "spl": "ㅤ├ㅤㅤ├ㅤㅤ├ㅤㅤ├ㅤ",
                        "spp": ",1,2,3,4,6,",
                        "ids": [
                            1,
                            2,
                            3,
                            4,
                            6
                        ],
                        "names": [
                            "Test",
                            "test2",
                            "test3",
                            "test4",
                            "test55"
                        ]
                    },
                    "cover": "https://storage.thinkadmin.top/d/temps/d3/863873b498c94c0b4d1cfdcb152a6f.png",
                    "slider": "https://storage.thinkadmin.top/d/temps/d3/863873b498c94c0b4d1cfdcb152a6f.png",
                    "specs": [
                        {
                            "name": "默认分组",
                            "list": [
                                {
                                    "name": "默认规格",
                                    "check": true,
                                    "show": true,
                                    "group": "默认分组"
                                }
                            ]
                        },
                        {
                            "name": "规格分组1",
                            "list": [
                                {
                                    "name": "规格属性",
                                    "check": true,
                                    "show": true,
                                    "group": "规格分组1"
                                },
                                {
                                    "name": "规格属性1",
                                    "check": true,
                                    "show": true,
                                    "group": "规格分组1"
                                }
                            ]
                        }
                    ],
                    "content": "<p>421341</p>",
                    "remark": "34132341",
                    "payment": {
                        "M780834464172204": {
                            "type": "wechat_gzh",
                            "code": "M780834464172204",
                            "name": "微信商户支付"
                        },
                        "M778545806045433": {
                            "type": "balance",
                            "code": "M778545806045433",
                            "name": "账户余额支付"
                        }
                    },
                    "stock_total": 12,
                    "stock_sales": 0,
                    "stock_virtual": 244,
                    "price_selling": "1.00",
                    "price_market": "2.00",
                    "rebate_type": 0,
                    "delivery_code": "T2023040543121",
                    "limit_lowvip": 0,
                    "limit_maxnum": 0,
                    "level_upgrade": -1,
                    "discount_id": 1,
                    "num_read": 14,
                    "sort": 0,
                    "status": 1,
                    "deleted": 0,
                    "create_time": "2023年04月14日 22:07:56",
                    "update_time": "2023年05月04日 10:40:39",
                    "items": [
                        {
                            "gsku": "S7814812744917",
                            "ghash": "4ac3857e088a69a3afcadb0385ad0577",
                            "gcode": "G781481257683240",
                            "gspec": "默认分组::默认规格;;规格分组1::规格属性",
                            "gimage": "",
                            "stock_sales": 0,
                            "stock_total": 9,
                            "price_selling": "1.00",
                            "price_market": "2.00",
                            "reward_balance": "0.01",
                            "reward_integral": "0.01",
                            "number_virtual": 122,
                            "number_express": 1
                        },
                        {
                            "gsku": "S7814812751639",
                            "ghash": "2aee99d3231b3754d14393cca5c35990",
                            "gcode": "G781481257683240",
                            "gspec": "默认分组::默认规格;;规格分组1::规格属性1",
                            "gimage": "",
                            "stock_sales": 0,
                            "stock_total": 3,
                            "price_selling": "1.00",
                            "price_market": "2.00",
                            "reward_balance": "0.01",
                            "reward_integral": "0.01",
                            "number_virtual": 122,
                            "number_express": 1
                        }
                    ]
                },
                "specs": {
                    "gsku": "S7814812744917",
                    "ghash": "4ac3857e088a69a3afcadb0385ad0577",
                    "gcode": "G781481257683240",
                    "gspec": "默认分组::默认规格;;规格分组1::规格属性",
                    "gimage": "",
                    "stock_sales": 0,
                    "stock_total": 9,
                    "price_selling": "1.00",
                    "price_market": "2.00",
                    "reward_balance": "0.01",
                    "reward_integral": "0.01",
                    "number_virtual": 122,
                    "number_express": 1,
                    "status": 1
                }
            }
        ]
    }
}
上一页
操作购物车数据 [ 会员 ]
下一页
获取会员折扣 [ 会员 ]
Built with