简要描述:
版本号 |
制定人 |
制定日期 |
修订日期 |
1.0.0 |
kevin |
2021-12-18 |
增加广告 |
请求URL:
请求方式:
请求头:
参数名 |
是否必须 |
类型 |
说明 |
token |
是 |
string |
凭证 |
请求参数:
参数名 |
是否必须 |
类型 |
说明 |
req_type |
是 |
string |
small=小程序,public=公众号,pc=PC端,app=APP端 ,desktop=桌面端 |
display_page |
是 |
string |
index=首页 |
display_position |
是 |
string |
显示位置 left-top=左上 , top=上 , right-top => 右上 , |
|
|
|
显示位置 left-center = 左中 , center = 中 , right-center = 右中 |
|
|
|
显示位置 left-bottom = 左下 , bottom = 下 , right-bottom = 右下 |
返回示例:
正确时返回:
{
"status": 200,
"msg": "成功",
"data": [
{
"id": 1,
"images": "http://writer.com/uploads/advertisement/2022-01-05/61d54c430ac61.gif",
"url": "#",
"type": "self",
"need_login": 2
},
{
"id": 2,
"images": "http://writer.com/uploads/advertisement/2022-01-05/61d54cf30a50f.png",
"url": "#",
"type": "self",
"need_login": 2
}
],
"other": []
}
错误时返回:
{
"status": 0,
"msg": "验证码错误"
}
返回参数说明:
参数名 |
类型 |
说明 |
id |
int |
id |
images |
string |
图片路径 |
url |
string |
跳转url |
type |
string |
jump=跳转外部,self=跳转内部 |
need_login |
int |
是否需要登录,1=需要,2=不需要 |
备注:
文档更新时间: 2022-01-18 10:31 作者:admin