多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 商品/店铺收藏 #### 商品收藏列表 ``` <pre class="calibre14">``` get:/index.php?ctl=Api_User_Favorites&met=favoritesGoods&typ=json *int:user_id#用户id int:listRows#每页记录数 int:firstRow#每页其实记录数 <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "page": 1, "total": 1, "totalsize": "1", "records": "1", "items": [{ "favorites_goods_id": "19", //id "user_id": "10010", //用户id "goods_id": "1", //商品id "favorites_goods_time": "2019-04-09 16:50:59", //收藏时间 "id": "19", "detail": { //商品信息 "goods_id": "1", //商品id "common_id": "1", //商品common_id "shop_id": "1", //店铺id "shop_name": "店铺名称", //店铺名称 "goods_name": "测试商品", //商品名称 "goods_promotion_tips": "", //促销提示 "cat_id": "49", //商品分类id "brand_id": "0", //品牌id "goods_spec": null, //商品规格 "goods_price": "100.00", //商品价格 "goods_market_price": "100.00", //市场价格 "goods_stock": "6", //库存 "goods_alarm": "0", //库存预警 "goods_code": "", //商家编号货号 "goods_barcode": "", //商品二维码 "goods_is_recommend": "0", //商品推荐 1是,0否 默认0 "goods_click": "73", //商品点击数量 "goods_salenum": "2", //销售数量 "goods_collect": "2", //收藏数量 "goods_image": "http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/00f844d3e1adc84fc09d03ca6ec48be0\/10004\/1\/image\/20190321\/1553147563765362.png", //商品主图 "color_id": "0", "goods_evaluation_good_star": "5", //好评星级 "goods_evaluation_count": "1", //评价数 "goods_max_sale": "0", //单人最大购买数量 "goods_is_shelves": "2", //1-上架 2-下架 "goods_recommended_price": "0.00", //建议零售价-可以取消 "goods_recommended_min_price": "0.00", //建议最低零售价 "goods_recommended_max_price": "0.00", //建议最高零售价 "goods_parent_id": "0", //商品来源id "is_del": "1", //是否删除 1-未删除 2-删除 "id": "1" }, "is_virtual": false }], "hasmore": false } } <<< error ``` ``` #### 店铺收藏列表 ``` <pre class="calibre15">``` get:/index *string:id=默认值#说明文字 name#说明文字 <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "page": 1, "total": 1, "totalsize": "1", "records": "1", "items": [{ "favorites_shop_id": "14", "user_id": "10018", //用户id "shop_id": "5", //店铺id "shop_name": "测试店铺", //店铺名称 "shop_logo": "http:\/\/www.shop.yuanfeng021.com\/image.php\/shop\/data\/upload\/media\/plantform\/00f844d3e1adc84fc09d03ca6ec48be0\/image\/20190321\/1553133465317438.png!0x0.png", //店铺logo "favorites_shop_time": "2019-04-30 18:41:03", //收藏时间 "id": "14", "shop": { "shop_id": "5", //店铺id "user_id": "10017", //会员id "user_name": "fengnn1", //会员账号 "shop_name": "测试店铺", //店铺名称 "shop_grade_id": "2", //店铺等级 "shop_class_id": "2", //店铺绑定分类,,如果是自营店铺就为0 "shop_all_class": "0", //绑定所有经营类目 "shop_self_support": "false", //是否自营 false-非自营 true-自营 "shop_business": "0", //0:个人入驻 1:企业入驻 "shop_create_time": "2019-04-28 08:57:31", //开店时间 "shop_end_time": "2020-04-28 08:57:31", //有效期截止时间 "shop_latitude": "", //维度 "shop_longitude": "", //经度 "shop_settlement_cycle": "30", //结算周期-天为单位-如果您想设置结算周期为一个月,则可以输入30 "shop_settlement_last_time": "2019-04-28 08:57:31", //店铺上次结算时间,若是新开店铺没有结算单,则是开店日期 "shop_points": "0", //积分 "shop_logo": "", //店铺logo "wap_shop_logo": "http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/2067c64a2a8358d9520a1798650b78f2\/10017\/5\/image\/20190428\/1556414986111087.jpg!64x60.jpg", //app/wap店铺logo "shop_banner": "http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/2067c64a2a8358d9520a1798650b78f2\/10017\/5\/image\/20190428\/1556415001459281.jpg!1200x150.jpg", //店铺banner "shop_status": "3", //店铺状态-3:开店成功 2:待审核付款 1:待审核资料 0:关闭 "shop_close_reason": "", //关闭原因 "shop_praise_rate": "0.00", //店铺好评率 "shop_desccredit": "0.00", //店铺描述 "shop_servicecredit": "0.00", //店铺服务 "shop_deliverycredit": "0.00", //店铺物流 "shop_collect": "2", //收藏数量 "shop_template": "default", //店铺绑定模板 "shop_workingtime": "", //营业时间 "shop_slide": "http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/2067c64a2a8358d9520a1798650b78f2\/10017\/5\/image\/20190428\/1556415338981954.jpg,http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/2067c64a2a8358d9520a1798650b78f2\/10017\/5\/image\/20190428\/1556415278482134.jpg,http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/2067c64a2a8358d9520a1798650b78f2\/10017\/5\/image\/20190428\/1556415298643337.jpg,http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/2067c64a2a8358d9520a1798650b78f2\/10017\/5\/image\/20190428\/1556415285171071.jpg,http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/2067c64a2a8358d9520a1798650b78f2\/10017\/5\/image\/20190428\/1556415288118776.jpg", //店铺幻灯片 "shop_slideurl": "http:\/\/,http:\/\/,http:\/\/,http:\/\/,http:\/\/", //店铺幻灯片链接 "shop_domain": " ", //二级域名 "shop_region": "", //店铺默认配送区域 "shop_address": "", //详细地址 "shop_qq": "1170595894", //QQ "shop_ww": " 测试1", //旺旺 "shop_tel": "13111112222", //卖家电话 "area_code": "86", //国际手机号区号 "shop_free_shipping": "0", //免运费额度 "shop_account": "", //商家账号 "shop_payment": "1", //0:未付款,1已付款 "joinin_year": "1", //加入时间 "is_renovation": "0", //是否开启装修(0:否,1:是) "is_only_renovation": "0", //是否仅显示装修(1:是,0:否) "is_index_left": "0", //是否左侧显示 "shop_print_desc": null, //打印订单页面下方说明 "shop_stamp": null, //店铺印章-将出现在打印订单的右下角位置 "shop_parent_id": "0", //上级店铺id-创建店铺决定 "shop_type": "1", //店铺类型: 1-卖家店铺; 2:供应商店铺 "district_id": "37", //所在地,使用最后一级分类 "shop_verify_reason": "", //审核信息备注 "shop_common_service": "", //店铺售后服务 "id": "5", "detail": { //店铺商品信息 "page": 1, "total": 2, "totalsize": "6", "records": "6", "items": [{ "common_id": "86", //商品common_id "common_name": "测试", //商品名称 "common_promotion_tips": "", //商品广告词 "cat_id": "520", //商品分类id "cat_name": "华为01 &gt; 华为01 &gt; 华为04 &gt; 华为05", //商品名称 "shop_id": "5", //店铺id "shop_name": "测试店铺", //店铺名称 "shop_cat_id": ",0,", //店铺分类id "shop_goods_cat_id": ["0"], //店铺商品分类id "goods_id": "125", //商品goods_id "shop_self_support": "0", //是否是自营店铺 1-自营 0-非自营 "shop_status": "3", //店铺状态-3:开店成功 2:待审核付款 1:待审核资料 0:关闭 "common_property": null, //属性 "common_spec_name": null, //规格名称 "common_spec_value": null, //规格值 "brand_id": "0", //品牌id "brand_name": "", //品牌名称 "type_id": "29", //类型id "common_video": "", //商品视频 "common_image": "http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/2067c64a2a8358d9520a1798650b78f2\/10017\/5\/image\/20190428\/1556428598607302.jpg", //商品主图 "common_packing_list": "", //包装清单 "common_service": "", //售后服务 "common_state": "1", //商品状态 0下架,1正常,10违规(禁售) "common_state_remark": "", //违规原因 "common_verify": "1", //商品审核 1通过,0未通过,10审核中 "common_verify_remark": "", //审核失败原因 "common_add_time": "2019-04-30 11:32:59", //商品添加时间 "common_sell_time": "2019-04-30 11:32:59", //上架时间 "common_price": "0.02", //商品价格 "common_market_price": "0.02", //市场价 "common_cost_price": "0.00", //成本价 "common_stock": "99999999", //商品库存 "common_limit": "0", //每人限购 0 代表不限购 "common_alarm": "0", //商品预警值 "common_code": "", //商家编号 "common_platform_code": "0", //平台货号 "common_cubage": "99999.00", //商品重量 "common_collect": "0", //商品收藏量 "common_evaluate": "0", //商品评论数 "common_salenum": "0", //商品销量 "common_invoices": "1", //是否开具增值税发票 1是,0否 "common_is_return": "0", "common_formatid_top": "0", //顶部关联板式 "common_formatid_bottom": "0", //底部关联板式 "common_is_recommend": "1", //商品推荐 "common_is_virtual": "0", //虚拟商品 "common_virtual_date": "0000-00-00", //虚拟商品有效期 "common_virtual_refund": "0", //支持过期退款 "transport_type_id": "0", //0--> 固定运费 非零:transport_type_id 运费类型 "transport_type_name": "", //运费模板名称 "common_freight": "0.00", //运费 "common_location": null, //商品所在地 "common_is_tuan": "0", //商品是否参加团购活动 "common_is_xian": "0", //商品是否参加限时折扣活动 "common_is_jia": "0", //商品是否参加加价购活动 "common_shop_contract_1": "0", //消费者保障-由店铺映射到商品,用来检索使用 "common_shop_contract_2": "0", //消费者保障-由店铺映射到商品,用来检索使用 "common_shop_contract_3": "0", //消费者保障-由店铺映射到商品,用来检索使用 "common_shop_contract_4": "0", //消费者保障-由店铺映射到商品,用来检索使用 "common_shop_contract_5": "0", //消费者保障-由店铺映射到商品,用来检索使用 "common_shop_contract_6": "0", //消费者保障-由店铺映射到商品,用来检索使用 "cps_rate": "0", //一级分佣比例 "second_cps_rate": "0", //二级分佣比例 "third_cps_rate": "0", //三级分佣比例 "common_cps_rate": "0.00", //一级分佣比例 "common_second_cps_rate": "0.00", //二级分佣比例 "common_third_cps_rate": "0.00", //三级分佣比例 "common_is_directseller": "0", //是否参与推广 0不参与 1参与 "product_lock_flag": "0", //店铺必须分销标记 1:不可删除 0:可以删除 "product_agent_id": "0", //代理商id-可更改,该店铺下级都属于该代理商。 "district_id": "37", //所在地,从店铺中同步,冗余检索使用 "supply_shop_id": "0", //商品来源-供应商店铺id "product_is_allow_update": "1", //是否可以修改内容 "product_is_allow_price": "1", //是否可以修改价格-可以取消 "product_is_behalf_delivery": "1", //是否代发货 "common_parent_id": "0", //分销原产品 "goods_recommended_min_price": "0.00", //建议最低零售价 "goods_recommended_max_price": "0.00", //建议最高零售价 "product_distributor_flag": "0", //是否为分销商品 0-自有商品 "common_distributor_description": null, //分销说明 "common_distributor_flag": "0", //1价格修改 2内容修改 "common_cps_commission": "0.00", //直属一级佣金-便于佣金排序 "common_goods_from": "1", //1正常添加,2外部导入。默认为1 "transport_area_id": "7", //售卖区域 "common_edit_time": "2019-04-28 13:25:34", //修改商品是否限购的时间 "is_del": "1", //是否删除 "id": "86", "good": [{ "goods_id": "125", //商品id "common_id": "86", //商品common_id "shop_id": "5", //店铺id "shop_name": "测试店铺", //店铺名称 "goods_name": "测试商品", //商品名称 "goods_promotion_tips": "", //促销提示 "cat_id": "520", //商品分类id "brand_id": "0", //品牌id "goods_spec": "", //商品规格 "goods_price": "0.02", //商品价格 "goods_market_price": "0.02", //市场价 "goods_stock": "99999999", //商品库存 "goods_alarm": "0", //库存预警值 "goods_code": "", //商家编号货号 "goods_barcode": "", //商品二维码 "goods_is_recommend": "1", //商品推荐 1是,0否 默认0 "goods_click": "4", //商品点击数量 "goods_salenum": "0", //销售数量 "goods_collect": "0", //收藏数量 "goods_image": "http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/2067c64a2a8358d9520a1798650b78f2\/10017\/5\/image\/20190428\/1556428598607302.jpg", //商品主图 "color_id": "0", "goods_evaluation_good_star": "5", //好评星级 "goods_evaluation_count": "0", //评价数 "goods_max_sale": "0", //单人最大购买数量 "goods_is_shelves": "1", //1-上架 2-下架 "goods_recommended_price": "0.00", //建议零售价 "goods_recommended_min_price": "0.00", //建议最低零售价 "goods_recommended_max_price": "0.00", //建议最高零售价 "goods_parent_id": "0", //商品来源id "is_del": "1" //是否删除 }], "shop_owner": 0, //当前账户是否是店主 1-是 0-不是 "dist_owner": 0, //当前账户是否是分销员 1-是 0-不是 "is_favorite": 0 //当前账户是否收藏该商品 1-收藏 0-未收藏 }] }, "address": "北京 东城区 " }, "wap_shop_logo": "http:\/\/www.shop.com\/image.php\/shop\/data\/upload\/media\/2067c64a2a8358d9520a1798650b78f2\/10017\/5\/image\/20190428\/1556414986111087.jpg!64x60.jpg" //店铺wap logo }], "hasmore": false } } <<< error ``` ```