文档
测试

商超-搜索商品

POST
http://chaofen.zhongbochanghong.cn/addons/yun_shop/api.php?i=1&uuid=0&type=5&mid=1&version=v1.1.137&basic_info=1&validate_page=1&route=plugin.hotel.frontend.hotel.ShopGoods.get-goods-by-kwd

接口描述

根据关键词搜索商品

请求参数

参数名
类型
描述
必填
hotel_id
int
酒店ID
必填
kwd
string
关键词
必填

响应参数

参数名
类型
描述
必填
id
int
商品id
必填
title
string
商品名称
必填
thumb
string
图片地址
必填
price
int
售价
必填
market_price
int
原价-市场价
必填
hotel_name
string
酒店名称
必填

说明 / 示例

``` { "result": 1, "msg": "获取商品成功", "data": { "current_page": 1, "data": [ { "id": 20, "uniacid": 1, "brand_id": 0, "type": 1, "status": 1, "display_order": 0, "title": "香蕉牛乳", "thumb": "images/1/2022/07/8d4331eec6d24aa6205ce34f9f5ef2b9.jpg", "thumb_url": "a:0:{}", "sku": "瓶", "description": "", "content": "", "goods_sn": "", "product_sn": "", "market_price": "10.00", "price": "8.00", "cost_price": "0.00", "stock": 1000, "reduce_stock_method": 0, "show_sales": 0, "real_sales": 0, "weight": "0.00", "has_option": 0, "is_new": 0, "is_hot": 0, "is_discount": 0, "is_recommand": 0, "is_comment": 0, "is_deleted": 0, "created_at": "2022-07-05 14:59:49", "deleted_at": null, "updated_at": "2022-07-05 14:59:49", "comment_num": 0, "is_plugin": 0, "plugin_id": 33, "virtual_sales": 100, "no_refund": 0, "need_address": 0, "type2": 1, "old_id": null, "volume": "0.000", "alias": "", "hotel_type": 1, "goods_id": 20, "buyNum": 0, "hotel_name": "测试酒店", "hotel_id": 1, "has_one_hotel_goods": { "id": 10, "goods_id": 20, "hotel_id": 1, "created_at": "2022-07-05 14:59:49", "updated_at": "2022-07-05 14:59:49", "deleted_at": null, "has_one_hotel": { "id": 1, "uniacid": 1, "uid": 1, "goods_id": 0, "hotel_name": "测试酒店", "thumb": "https://chaofen.zhongbochanghong.cn/static/upload/images/1/2022/07/19479514481ca8d801345faa1f1f5647.jpg", "banner_thumb": "https://chaofen.zhongbochanghong.cn/static/upload/images/1/2022/07/19479514481ca8d801345faa1f1f5647.jpg", "category_id": 1, "province_id": 110000, "city_id": 110100, "district_id": 110112, "street_id": 110112003, "address": "万达广场D座", "star_rated": 3, "entrance_time": "00:00", "departure_time": "12:00", "user_uid": 16, "longitude": "116.64813", "latitude": "39.911427", "mobile": "010-418548", "username": "18605463404", "password": "Jiudian123*", "template_id": null, "salers": "N;", "hotel_introduce": "商务特色:停车场, 商务出行, 情侣约会。 宾馆地理位置优越,环境优美,装修风格浪漫温馨,客房宽敞明亮,干净卫生舒适,配套设施齐全,老板热情周到,欢迎您的入住!", "instructions": "入住时间: 14:00至23:59 离店时间: 12:00之前", "is_black": 0, "created_at": "2022-07-01 09:56:38", "updated_at": "2022-07-04 17:19:30", "deleted_at": null, "cashier_id": 2, "collect_money_url": null, "hotel_index_mini_url": null, "full_address": "北京 北京市 通州区 万达广场D座", "black_obj": { "style": "fa fa-minus-circle", "name": "设置黑名单" } } } } ], "first_page_url": "http://chaofen.zhongbochanghong.cn/addons/yun_shop/api.php?page=1", "from": 1, "last_page": 1, "last_page_url": "http://chaofen.zhongbochanghong.cn/addons/yun_shop/api.php?page=1", "next_page_url": null, "path": "http://chaofen.zhongbochanghong.cn/addons/yun_shop/api.php", "per_page": 10, "prev_page_url": null, "to": 1, "total": 1 }, "basic_info": { "popularize_page": { "wechat": { "vue_route": [], "url": "" }, "mini": { "vue_route": [], "url": "", "mini_url": "" }, "wap": { "vue_route": [], "url": "" }, "app": { "vue_route": [], "url": "" }, "alipay": { "vue_route": [], "url": "" }, "baidu": null }, "balance": "余额", "point": "积分", "integral": "消费积分", "love": "爱心值", "lang": { "test": [], "commission": { "title": "", "commission": "", "agent": "", "level_name": "", "commission_order": "", "commission_amount": "" }, "single_return": { "title": "", "single_return": "", "return_name": "", "return_queue": "", "return_log": "", "return_detail": "", "return_amount": "" }, "team_return": { "title": "", "team_return": "", "return_name": "", "team_level": "", "return_log": "", "return_detail": "", "return_amount": "", "return_rate": "", "team_name": "", "return_time": "" }, "full_return": { "title": "", "full_return": "", "return_name": "", "full_return_log": "", "return_detail": "", "return_amount": "" }, "team_dividend": { "title": "", "team_dividend": "", "team_agent_centre": "", "dividend": "", "flat_prize": "", "award_gratitude": "", "dividend_amount": "", "my_agent": "" }, "area_dividend": { "area_dividend_center": "", "area_dividend": "", "dividend_amount": "" }, "income": { "name_of_withdrawal": "提现", "income_name": "收入", "poundage_name": "手续费", "special_service_tax": "劳务税", "manual_withdrawal": "手动提现" }, "agent": { "agent": "", "agent_num": "", "agent_count": "", "agent_order": "", "agent_order_count": "", "agent_goods_num": "" }, "merchant": { "title": "招商", "merchant_people": "招商员", "merchant_center": "招商中心", "merchant_reward": "分红" }, "appointment": { "project": "项目", "service": "服务", "worker": "技师" }, "reserve_simple": { "service": "服务", "reserve_obj": "预约人员" }, "store_projects": { "project": "项目" }, "micro": { "title": "微店" }, "plugin_language": { "en": { "home": { "输入关键词搜索": "输入关键词搜索", "品牌优选": "品牌优选", "限时优惠": "限时优惠", "用最低价格买好物": "用最低价格买好物", "限时价": "限时价", "人气推荐": "人气推荐", "精选最适合您的商品": "精选最适合您的商品", "推荐商品": "推荐商品" }, "category": { "搜索商品": "搜索商品", "未检测到子分类数据": "未检测到子分类数据", "选择分类": "选择分类", "三级分类": "三级分类", "暂无其他分类": "暂无其他分类", "已售": "已售", "选规格": "选规格", "去租赁": "去租赁", "推荐品牌": "推荐品牌", "推荐分类": "推荐分类", "加入购物车": "加入购物车" }, "extension": { "会员": "会员", "分享": "分享", "累计": "累计", "可": "可", "去": "去", "日自动": "日自动", "领取收益": "领取收益", "明细": "明细", "营业额": "营业额", "权限": "权限", "更多权限": "更多权限" }, "cart": { "购物车": "购物车", "编辑": "编辑", "完成": "完成", "不含运费": "不含运费", "合计": "合计", "结算": "结算", "删除": "删除", "购物车快饿瘪了": "购物车快饿瘪了", "主人快去给我找点东西吧": "主人快去给我找点东西吧", "个人中心": "个人中心", "去逛逛": "去逛逛" }, "member": { "退出登录": "退出登录", "邀请码": "邀请码", "复制": "复制", "实用工具": "实用工具", "收藏": "收藏", "足迹": "足迹", "地址管理": "地址管理", "设置": "设置", "消息通知": "消息通知", "商家管理": "商家管理", "营销互动": "营销互动", "二维码": "二维码", "评论": "评论", "客户": "客户", "优惠券": "优惠券", "资产权益": "资产权益", "二维码生成中": "二维码生成中 请稍候查看" }, "我的推广": "我的推广", "分类": "分类", "会员中心": "会员中心", "预估收益": "预估收益", "天": "天", "搜索": "搜索", "加载更多": "加载更多", "没有更多了": "没有更多了", "money": "¥", "元": "元", "全选": "全选", "下架": "下架", "售罄": "售罄", "已下架": "已下架", "不存在": "不存在", "失效": "失效" } } }, "globalParameter": { "is_open_delivery_station": 0, "is_open_photo_order": 0, "delivery_driver_open": 0, "is_open_package_deliver": null, "is_open_advert_market": null, "assemble_name": "安装服务", "assemble_worker_name": "安装师傅", "consume_red_packet_status": 0, "is_open_shop_esign": 1, "ios_virtual_pay": 0, "order_locate": false, "register_locate": false, "bind_mobile_locate": false, "vip_show": false, "invest_people_open": false, "cart_num": 1, "crm_account_bind": 0 }, "plugin_setting": { "high_light": { "diy_name": "高灯提现" }, "instation_message": { "enable": 0, "total": 0 }, "pc_terminal": { "enable": 0, "pc_temp": 2 }, "store_alone_temp": { "enable": 0 }, "video_live_room": null, "yz_supply_camilo_resources": { "is_ios_sell": 0, "is_default_order_address": 0, "province_id": "", "province": "", "city_id": "", "city": "", "district_id": "", "district": "", "street_id": "", "street": "", "username": "", "mobile": "", "address": "" } }, "consolidated_payment": 1, "home": { "memberinfo": { "uid": 1, "usable": 0 }, "mailInfo": { "is_bind_mobile": 0 }, "system": { "mobile_login_code": 1, "btn_romotion": "1" }, "register_setting": null, "plugin": { "goods_show": { "goods_group": null, "around_goods": null }, "new_member_prize": [] }, "designer": { "love_name": "爱心值" }, "item": { "ViewSet": { "member": { "id": 3, "uniacid": 1, "name": "member02", "image": "member_02", "code": "member02", "type": 1, "is_default": 1, "created_at": "2022-07-04 13:59:07", "updated_at": "2022-07-04 13:59:07", "deleted_at": 0 }, "extension": { "id": 2, "uniacid": 1, "name": "extension02", "image": "extension_02", "code": "extension02", "type": 2, "is_default": 1, "created_at": "2022-07-04 13:58:42", "updated_at": "2022-07-04 13:58:42", "deleted_at": 0 }, "category": { "is_default": 0 }, "goods": { "is_default": 0 }, "goodsList": { "is_default": 0 } }, "is_decorate": 1, "menus": null } }, "upload_max_file_size": 52428800 }, "validate_page": { "is_bind_mobile": 0, "invite_page": 0, "is_invite": 1, "is_login": 1, "invite_mobile": 1, "is_auth": 0, "real_name_auth_scene": [], "real_name_auth_is_open": 1 } } ```