DokuWiki

It's better when it's simple

用户工具

站点工具


zh:tips

这是本文档旧的修订版!


PlayGround

## 获取商家列表

## URL http://gongyigou.com.h001.360sheji.cn/app/webapp.php?action=tuan

## 实例 http://gongyigou.com.h001.360sheji.cn/app/webapp.php?action=tuan &lat=38.2910806996 &lng=109.7412173724 &cateid=0 &cityid=221 &attrid=0 &areaid=0 &page=1

## HTTP请求方式 GET

## 请求参数

## Heading 1 # Heading 2
Gobble Bar
[Main] [SandBox]

参数名 | 必选 | 类型及范围 | 说明 —— | —- | ———| —- lat | false | int | 当前页, 默认为1 lng | false | int | 每页多少条数据, 默认为20 cateid | true | string | 模糊检索关键词`商家昵称` cityid | true | int | 最小价格 attrid | true | int | 最大价格 areaid | false | int | 地域id page | false | int | 页数

## 返回字段说明 返回值字段 | 字段类型 | 字段说明 —– | —-| —— id | string | 产品id product | string | 产品 image | string | 图片地址 title | string | 产品名称 market_price | string | 市场价格 team_price | string | 团购价格 now_number | string | 商品数量 lat | string | 纬度 lng | string | 经度 juli | string | 距离

## 正确返回结果示例 ``` [{

"id": "2136",
"product": "全家出去玩",
"image": "http:\/\/gongyigou.com.h001.360sheji.cn\/static\/team\/2015\/0321\/14269177024946_index.jpg",
"title": "事实",
"market_price": "10.00",
"team_price": "1.00",
"now_number": "7",
"lat": null,
"lng": null,
"juli": 0

}, {

"id": "2135",
"product": "测试券库存",
"image": "http:\/\/gongyigou.com.h001.360sheji.cn\/static\/_index",
"title": "测试券库存",
"market_price": "1.00",
"team_price": "1.00",
"now_number": "20",
"lat": null,
"lng": null,
"juli": 0

}] ```

## 错误返回结果示例 ```

```

zh/tips.1429281387.txt.gz · 最后更改: 2015-04-17 16:36 由 106.187.36.118

除额外注明的地方外,本维基上的内容按下列许可协议发布: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki