企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## :-: **获取门票、消费卡、活动列表** ~~~[api] get:/index/Index/all *varchar:token=100069&950b09e3299fe283065b2d1255516e53#登录密钥 *tinyint:type=1#1=门票;2=消费卡;3=活动 *int:store_id=1#门店id *tinyint:sort=4#4=距离最近;5=价格最低;6=热门活动;7=综合排序(当type为活动时) *float:longitude=113.528685#经度(选择距离最近活动时传入) *float:latitude=24.764176#纬度(选择距离最近活动时传入) <<< tickets { "code": 1, "msg": "获取成功", "count": 2, "data": [ { "id": 1, "name": "测试票", "picture": { "id": 1, "path": "uploads/images/20190924/272dc1943fb0f12d5e9cb9839304b5f5.jpg" }, "info": "拿来测试的", "price": "0.00", "sales": 0 } ] } <<< cards { "code": 1, "msg": "获取成功", "count": 1, "data": [ { "id": 1, "name": "肥宅专属消费卡[快乐源泉]", "picture": { "id": 1, "path": "uploads/images/20190924/272dc1943fb0f12d5e9cb9839304b5f5.jpg" }, "info": "肥宅专属消费卡", "sales": 9 } ] } <<< activity { "code": 1, "msg": "获取成功", "data": { "0": { "id": 1, "name": "相亲活动", "picture": { "id": 1, "path": "uploads/images/20190924/272dc1943fb0f12d5e9cb9839304b5f5.jpg" }, "site": "韶关市浈江区韶关碧桂园凤凰酒店", "price": "1.00", "info": "单身狗福利", "sales": 999, "is_over": 1, "over_time": "2019-10-09 00:00", "juli": 1859.2, "activity": [ { "activity_id": 1, "name": "标签表1" } ] } } } ~~~ ### 返回字段说明 | 字段 | 说明 | | --- | --- | | name | 名字 | | picture | 配图 | | info | 详情 | | price | 单价 | | sales | 销售量 | | site | 活动地址 | | is_over | 1=进行中;0=已结束| |over_time | 活动结束时间 | | juli | 活动地与用户当前的距离 | | activity | 活动标签 |