企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] * * * * * ### WeEngine Android、IOS Cart api #### 购物车列表 ~~~[api] POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.cart.get_list *string:openid=默认值#openid <<< success { "status": 1, "result": { "ischeckall": true, //全部选中状态 true全选 false不是全选 "list": [ { "id": "", //购物车ID "total": "1", //商品数量 "goodsid": "", //商品ID "stock": "", //库存 "preselltimeend": "", //预售结束时间 "gpprice": "", //预售价格 "hasoption": "0", //启用商品规则 0 不启用 1 启用 "optionstock": null,//商品库存 -1 永久可卖 "presellprice": null, //预售价格 "ispresell": "0", //是否预售商品 0否 1是 "maxbuy": "0", //单次最多购买量 0不限 "title": "", //商品名称 "thumb": "", //商品缩略图 "marketprice": , //商品现价 "productprice": "", //商品原价 "optiontitle": null, //规格名称 "optionid": "0", //规格ID "specs": null, //规格设置 "minbuy": "0", // 用户单次必须购买数量 0不限 "unit": "件", //商品单位 "merchid": "0", //商户ID "checked": "0", "isdiscount_discounts": "{\"type\":0,\"default\":{\"option0\":\"\"}}", //促销价格 数字为价格 百分数 为折扣 "isdiscount": "0", //促销 "isdiscount_time": "", //促销结束时间戳 "isnodiscount": "0", //不参与会员折扣 "discounts": "{\"type\":\"0\",\"default\":\"\",\"default_pay\":\"\"}", //折扣 "merchsale": "0", //手机端使用的价格 0 当前设置促销价格 1 商户设置促销价格 "selected": "1", //selected 是否选中 0否 1是 "type": "1", //类型 1 实体物品 2 虚拟物品 3 虚拟物品(卡密) 4 批发 10 话费流量充值 20 充值卡 "intervalfloor": "0", "intervalprice": "", "ggprice": 119, "discounttype": 0, "totalmaxbuy": "" //最多购买量 } ], "total": 1, //结算总数 "totalprice": 119, //结算总价 "merch_user": [], "merch": [], "url": "" } } <<< error { "status": 0, "result": { "message": "错误信息" } } ~~~ #### 购物车修改 ~~~[api] POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.cart.update *string:openid=默认值#openid *string:id=默认值#购物车ID *string:total=默认值#数量 *string:optionid=默认值#选项ID <<< success { "status": 1, "result": { "message": "操作成功" } } <<< error { "status": 0, "result": { "message": "错误信息" } } ~~~ #### 购物车商品选择 ~~~[api] POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.cart.select *string:openid=默认值#openid *string:id=默认值#购物车ID *string:select=默认值#选择状态 0未选中 1选中 <<< success { "status": 1, "result": { "message": "操作成功" } } <<< error { "status": 0, "result": { "message": "错误信息" } } ~~~ #### 购物车商品添加 ~~~[api] POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.cart.add *string:openid=默认值#openid *string:id=默认值#购物车ID *string:total=默认值#购物车数量 *string:optionid=默认值#规格ID <<< success { "status": 1, "result": { "message": "操作成功" } } <<< error { "status": 0, "result": { "message": "错误信息" } } ~~~ #### 购物车商品移除 ~~~[api] POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.cart.remove *string:openid=默认值#openid *string:ids=默认值#购物车ID组 <<< success { "status": 1, "result": { "message": "操作成功" } } <<< error { "status": 0, "result": { "message": "错误信息" } } ~~~ #### 购物车商品移动到关注 ~~~[api] POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.cart.tofavorite *string:openid=默认值#openid *string:ids=默认值#购物车ID组 <<< success { "status": 1, "result": { "message": "操作成功" } } <<< error { "status": 0, "result": { "message": "错误信息" } } ~~~ #### 购物车商品结算 ~~~[api] POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.cart.submit *string:openid=默认值#openid <<< success { "status": 1, "result": { "message": "操作成功" } } <<< error { "status": 0, "result": { "message": "错误信息" } } ~~~