Banner配置
- Java
- Kotlin
- Objective-C
- Swift
MarvelManager.getInstance().getBanner(countryCode, language, abcodes, phrase, update, effectiveFilter, timezoneOffset, new AWHttpOriginalCallback() {
@Override
public void response(int code, String data) {
}
});
MarvelManager.getInstance().getBanner(countryCode, language, abcodes,phrase, update, effectiveFilter, timezoneOffset, object : AWHttpOriginalCallback{
override fun response(code: Int, data: String?) {
}
})
#import <AWMarvel/AWMarvel.h>
......
[[AWMarvelManager sharedInstance] getBannerWithLanguage:language withCountryCode:countryCode withPhrase:phrase withUpdate:update withAbcodes:abcodes withEffectiveFilter:effectiveFilter withTimezoneOffset:timezoneOffset withCompletion:^(NSInteger result, NSString * _Nonnull errorMsg, NSDictionary * _Nullable data) {
}];
#import <AWMarvel/AWMarvel.h>
......
AWMarvelManager.sharedInstance().getBannerWithLanguage(language, withCountryCode: countryCode, withPhrase: phrase, withUpdate: update, withAbcodes: abcodes, withEffectiveFilter: effectiveFilter, withTimezoneOffset: timezoneOffset) { result, errorMsg, data in
}
参数
- language:语言
- countryCode:国家
- phrase: 预发布密码(可空)
- update: 当前MD5值(可空)
- abcodes: abcode多个按逗号分隔(,)
- effectiveFilter: 传1新时区逻辑,不传为旧逻辑 (可空)
- timezoneOffset: 用户时区偏移值,分钟为单位,服务端将根据该值计算用户时区的数据,可替代effective_filter,此时不会进入effective_filter逻辑(可空)
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
code | number | 必须 | |||
data | object [] | 非必须 | item 类型: object | ||
├─ rid | string | 必须 | 远程配置id | ||
├─ sub_status | number | 必须 | 订阅状态 1全部,2订阅中,3非订阅 | ||
├─ user_status | number | 必须 | 用户状态 1全部,2新用户,3非新用户 | ||
├─ position | string | 必须 | 位置 B+「top(默认)、second」 AB「HPB(默认)、HPBS、HPBL」 | ||
├─ text_layer | string | 必须 | 文字图层url | ||
├─ deeplink | string | 必须 | |||
├─ media | object | 必须 | 图片/视频 | ||
├─ type | string | 非必须 | img | video | ||
├─ url | string | 非必须 | |||
├─ same_using | object | 必须 | 拍同款 | ||
├─ using_music_id | string | 非必须 | 同款音乐素材id | ||
├─ media | object | 非必须 | 目前都是视频 | ||
├─ type | string | 非必须 | 媒体类型 video | ||
├─ url | string | 非必须 | url | ||
├─ desc | string | 非必须 | 描述 | ||
├─ relation_music_list | string [] | 非必须 | 音乐素材id列表 | item 类型: string | |
├─ | 非必须 | ||||
├─ status | number | 非必须 | 状态 1开启 2关闭 | ||
├─ order_no | number | 必须 | 排序值,大的在前,小的在后 | ||
├─ text_content | object | 必须 | 文字内容 | ||
├─ title | string | 必须 | |||
├─ text | string | 必须 | |||
├─ ended_at | number | 必须 | 结束时间,时间戳(秒),为0时代表无结束时间 | mock: 1637125199 | |
├─ abcode | number | 必须 | abcode,未填时为0 | mock: 0 | |
message | string | 必须 | |||
update | string | 必须 |
返回
{
"code": 0,
"data": [
{
"deeplink": "11111",
"effective_time": {
"status": 2
},
"media": {
"type": "img",
"url": "https://gcs-airvid.meitu.com/27696587407b910a36b523b024969858.jpeg"
},
"position": "HPBL",
"rid": "AW_BAN_00000019",
"same_using": {
"desc": "ddd",
"media": {
"type": "fdafdf",
"url": "https://gcs-airvid.meitu.com/27696587407b910a36b523b024969858.jpeg"
},
"relation_music_list": [
"fdfd",
"fdafsaf"
],
"status": 1
},
"sub_status": 1,
"text_content": {
"text": "dddd",
"title": "dddd"
},
"text_layer": "dfdfdf",
"user_status": 1
},
{
"deeplink": "11111",
"effective_time": {
"status": 2
},
"media": {
"type": "img",
"url": "https://gcs-airvid.meitu.com/27696587407b910a36b523b024969858.jpeg"
},
"position": "HPBL",
"rid": "AW_BAN_00000018",
"same_using": {
"desc": "ddd",
"media": {
"type": "fdafdf",
"url": "https://gcs-airvid.meitu.com/27696587407b910a36b523b024969858.jpeg"
},
"relation_music_list": [
"fdfd",
"fdafsaf"
],
"status": 1
},
"sub_status": 1,
"text_content": {
"text": "dddd",
"title": "dddd"
},
"text_layer": "dfdfdf",
"user_status": 1
},
{
"deeplink": "11111",
"effective_time": {
"status": 2
},
"media": {
"type": "img",
"url": "https://gcs-airvid.meitu.com/27696587407b910a36b523b024969858.jpeg"
},
"position": "HPBL",
"rid": "AW_BAN_00000016",
"same_using": {
"desc": "ddd",
"media": {
"type": "fdafdf",
"url": "https://gcs-airvid.meitu.com/27696587407b910a36b523b024969858.jpeg"
},
"relation_music_list": [
"fdfd",
"fdafsaf"
],
"status": 1
},
"sub_status": 1,
"text_content": {
"text": "dddd",
"title": "dddd"
},
"text_layer": "dfdfdf",
"user_status": 1
}
],
"message": "success",
"update": "0560e5ea1c13a686801d2683d92bdb33"
}