# 获取广告
>[info]
##
请求地址:[https://你的域名/api/advert](https://xn--6qqv7i2xdt95b/api/advert)[](https://xn--6qqv7i2xdt95b/api/about/%7Bid%7D)[](https://xn--6qqv7i2xdt95b/api/pay/%7Bway%7D)
请求方法:GET
请求数据:
| 字段 | 名称 | 说明 |
| --- | --- | --- |
| alias | 别名 | 广告位别名 |
| column | 字段 | |
返回数据:
| 字段 | 名称 | 说明 |
| --- | --- | --- |
| id | ID | |
| alias | 别名 | |
| title | 标题 | |
| content | 内容 | 图片支持content\_200,content\_500,content\_800,content\_1000,content\_2000 |
| url | 链接地址 | |
| uid | 用户UID | |
| single | 用户单身资料 | |
请求示例:
```
request({
url: "https://demo.bottlecms.com/api/advert",
method: "GET",
data: {
alias:"BC_mobile_index_banner",
column:"id,content,single"
},
success: (res) => {
if(res.code==200){
//返回成功
console.log(res.obj);
}
}
});
```
返回示例:
```
{
"success":true,
"code":200,
"msg":"保存成功",
"list":[
{
"id":11,
"alias":"BC_mobile_single_recommend",
"type":"uid",
"title":"3",
"content":"3",
"url":null,
"uid":2,
"start_at":null,
"end_at":null,
"sort":null,
"enable":1,
"explains":null,
"created_at":"2019-05-17 16:20:44",
"single":{
"user_id":3,
"nickname":"八将孺虫霓泰",
"gender":1,
"photo":"https://new.bottlecms.com/uploads/single/photo/3.jpeg",
"photo_mode":1,
"birthday":"1992-01-27",
"height":184,
"constellation":7,
"education":5,
"income":null,
"industry":null,
"district_cn":"北京.房山",
"soliloquy":null,
"setmeal_id":1,
"group_id":3,
"photo_50":"https://new.bottlecms.com/uploads/single/photo/3.jpeg",
"photo_100":"https://new.bottlecms.com/uploads/single/photo/3.jpeg",
"photo_200":"https://new.bottlecms.com/uploads/single/photo/3.jpeg",
"photo_400":"https://new.bottlecms.com/uploads/single/photo/3.jpeg",
"photo_600":"https://new.bottlecms.com/uploads/single/photo/3.jpeg",
"age":29,
"gender_val":"男士",
"education_val":"大专",
"birthday_val":"1992-01-27",
"district_val":"北京.房山",
"nickname_val":"八将孺虫霓泰",
"height_val":"184cm",
"photo_mode_val":"清晰显示",
"constellation_val":"狮子座"
}
},
{
"id":10,
"alias":"BC_mobile_single_recommend",
"type":"uid",
"title":"1",
"content":"2",
"url":null,
"uid":1,
"start_at":null,
"end_at":null,
"sort":null,
"enable":1,
"explains":null,
"created_at":"2019-05-17 16:20:38",
"single":{
"user_id":2,
"nickname":"泛惨癸缴僳",
"gender":2,
"photo":"https://new.bottlecms.com/uploads/single/photo/2.jpeg",
"photo_mode":1,
"birthday":"1994-01-01",
"height":179,
"constellation":12,
"education":6,
"income":10,
"industry":0,
"district_cn":"北京.东城.北新桥",
"soliloquy":"",
"setmeal_id":1,
"group_id":3,
"photo_50":"https://new.bottlecms.com/uploads/single/photo/2.jpeg",
"photo_100":"https://new.bottlecms.com/uploads/single/photo/2.jpeg",
"photo_200":"https://new.bottlecms.com/uploads/single/photo/2.jpeg",
"photo_400":"https://new.bottlecms.com/uploads/single/photo/2.jpeg",
"photo_600":"https://new.bottlecms.com/uploads/single/photo/2.jpeg",
"age":27,
"gender_val":"女士",
"income_val":"5000~10000元4",
"education_val":"本科",
"birthday_val":"1994-01-01",
"district_val":"北京.东城.北新桥",
"nickname_val":"泛惨癸缴僳",
"height_val":"179cm",
"photo_mode_val":"清晰显示",
"constellation_val":"摩羯座",
"industry_val":null,
"soliloquy_val":""
}
}
]
}
```
- 序言
- 安装及配置
- 环境要求
- 开始安装
- Redis配置
- 问题处理
- 图片不显示
- 站点迁移
- 接口配置
- 文件储存
- 阿里云OSS
- 七牛云KODO
- 短信
- 阿里云短信
- 腾讯云短信
- 邮件
- SMTP发送
- 阿里云邮件API
- 支付
- 微信支付
- 支付宝
- Stripe
- Paypal
- 第三方账号
- 微信登陆
- QQ登陆
- 实人认证
- 阿里云实人认证
- 微信公众号
- 微信公众号接口
- 微信公众号模版消息
- 微信小程序前端发布
- APP前端发布
- 使用说明
- 基本设置
- 按页面设置
- 手机端(web)
- 首页
- 寻觅页
- 缘分页
- 附近页
- 单身详情页
- 消息页
- 聊天页
- 我的页
- 单身圈
- 话题
- 活动
- 约会
- 互选
- 服务
- 单身群
- 官方红娘
- 脱单宝典
- API接口
- 请求说明
- 上传文件
- 获取配置信息
- 获取分类
- API支付
- 获取支付方式
- 调起支付
- 获取自定义页
- 获取文章
- 获取文章列表
- 获取文章详情
- 意见反馈
- 获取广告
- 获取通知
- 注册用户
- 用户登陆
- 第三方账号登陆
- 完善资料
- 获取单身列表
- 获取单身详情