2.安卓向服务器请求广告数据
安卓mq实例向主题:server/v1 发送以下内容
{"code":" get_update_ad", "sn":"123456" }
3.服务器返回广告数据给安卓
服务器收到2的数据后,mq实例向主题:device/123abc 发送以下内容
{
"code":"get_update_ad",
"data":{
"taskId":"6",
"taskName":"汽车图片",
"adList":[
{
"name":"广告名字",
"videoPath":"",
"imgPath":"https://qqt-test.oss-cn-hangzhou.aliyuncs.com/picture/2021-04-30/1619770227573-489a83b2-1e46-493f.jpg,https://qqt-test.oss-cn-hangzhou.aliyuncs.com/picture/2021-04-30/1619770227573-489a83b2-1e46-493f.jpg"
},
{ "name":"广告名字",
"videoPath":"",
"imgPath":"https://qqt-test.oss-cn-hangzhou.aliyuncs.com/picture/2021-04-30/1619770227573-489a83b2-1e46-493f.jpg"
}
]
}
}