Skip to main content

订阅管理

MarvelManager.getInstance().getNewSubs(countryCode,language,phrase,update,effectiveFilter,timezoneOffset,new AWHttpOriginalCallback(){
@Override
public void response(int code,String data){

}
});

请求参数

Query

参数名称是否必须示例备注
app_id103产品平台id
lang语言
country_code国家
phrase预览密钥
version客户端版本
update数据的md5值
effective_filter传1新时区逻辑,不传为旧逻辑 参照https://meitu.feishu.cn/docs/doccnYciNqUjP32KmNro05TXoth

返回数据

名称类型是否必须默认值备注其他信息
codenumber必须
dataobject必须
├─ activityobject []必须活动(对用户下发多条)

item 类型: object

├─ namestring必须名称
├─ countdownobject必须倒计时
├─ start_timenumber必须开始时间(时间戳:秒)
├─ end_timenumber必须结束时间(时间戳:秒)
├─ countdown_colorstring必须背景色值
├─ statusnumber必须状态1启用2禁用
├─ countdown_text_colorstring必须倒计时文字背景
├─ titleo_colorstring必须标题1字体颜色
├─ titleo_contstring必须标题1标题
├─ titlet_colorstring必须标题2字体颜色
├─ titlet_contstring必须标题2标题
├─ bac_picstring必须标题背景
├─ describe_copystring必须描述文案
├─ describe_colorstring必须描述字体颜色
├─ contentobject []必须内容区

item 类型: object

├─ cont_textstring必须文本
├─ picturestring必须图片
├─ class_infostring必须分类
├─ yearobject必须订阅方案--年
├─ product_idstring必须产品id
├─ discountnumber必须折扣
├─ free_daysnumber必须免费天数
├─ describestring必须折扣描述
├─ markstring必须折扣标记
├─ button_copystring必须按钮文案
├─ statusnumber必须状态1启用2禁用
├─ badge_bg_colorstring必须左侧标签颜色(底色/文字/描边)
├─ badge_text_colorstring必须左侧标签颜色(底色/文字/描边)
├─ badge_border_inside_colorstring必须左侧标签颜色(底色/文字/描边)
├─ save_bg_selected_colorstring必须Save %选中底色(包括底色与描边)
├─ save_text_selected_colorstring必须Save %选中文案色值
├─ save_bg_default_colorstring必须Save %未选中底色
├─ save_text_default_colorstring必须Save %未选中文案色值
├─ monthobject必须订阅方案--月
├─ product_idstring必须产品id
├─ discountnumber必须折扣
├─ free_daysnumber必须免费天数
├─ describestring必须折扣描述
├─ markstring必须折扣标记
├─ button_copystring必须按钮文案
├─ statusnumber必须状态1启用2禁用
├─ weekobject必须订阅方案--周
├─ product_idstring必须产品id
├─ discountnumber必须折扣
├─ free_daysnumber必须免费天数
├─ describestring必须折扣描述
├─ markstring必须折扣标记
├─ button_copystring必须按钮文案
├─ statusnumber必须状态1启用2禁用
├─ lifetimeobject必须订阅方案--终生
├─ product_idstring必须产品id
├─ discountnumber必须折扣
├─ free_daysnumber必须免费天数
├─ describestring必须折扣描述
├─ markstring必须折扣标记
├─ button_copystring必须按钮文案
├─ statusnumber必须状态1启用2禁用
├─ quarterobject必须订阅方案--季度
├─ product_idstring必须产品id
├─ discountnumber必须折扣
├─ free_daysnumber必须免费天数
├─ describestring必须折扣描述
├─ markstring必须折扣标记
├─ button_copystring必须按钮文案
├─ statusnumber必须状态1启用2禁用
├─ cont_colorstring必须内容区字体颜色
├─ img_backgroundstring必须图片背景
├─ video_backgroundstring必须视频背景
├─ home_entstring必须首页入口
├─ setting_entrystring必须设置页入口
├─ bannerstring必须banner入口
├─ sub_colorstring必须订阅方案字体颜色
├─ sub_blacolorstring必须订阅方案背景颜色
├─ mtg_idstring必须ID
├─ highlightstring必须高亮选中 week:周 ,month:月,quarter:季,year:年,lifetime:终身(AB/AirVid)
├─ shootstring必须拍摄入口 (partynow专用)
├─ eff_statusnumber必须是否开启生效时间,状态1启用2禁用
├─ end_ednumber必须生效结束时间
├─ start_edstring必须生效开始时间
├─ sku_bg_default_colorstring必须SKU默认颜色SKU BG Default
├─ sku_bg_selected_colorstring必须SKU选中颜色 SKU BG Selected
├─ price_default_colorstring必须价格文案色值(默认/选中)Price Default
├─ price_selected_colorstring必须价格文案色值(默认/选中)Price Selected
├─ discount_bg_colorstring必须折扣底色
├─ discount_text_colorstring必须折扣文案
├─ background_colorstring必须背景色值
├─ terms_background_colorstring必须条款背景色
├─ foregroundstring必须前景
├─ promotionobject []必须促销(字段同活动一致)(仅对用户下发一条(“开始时间”最小的,次优 “创建时间”「创建时间最小的一条」),开启了生效时间和没开启生效时间的促销类型,开启了生效时间的优先于没开启的 ))

item 类型: object

├─ dailyobject []必须日常(字段同活动一致)

item 类型: object

messagestring必须
updatestring必须数据的md5值

{
"code": 0,
"data": {
"activity": [
{
"id": 20478,
"name": "TH-新尺寸-泼水节8折",
"countdown": {
"start_time": 1649923200,
"end_time": 1650182399,
"countdown_color": "#154E3B",
"status": 1,
"countdown_text_color": "#454321"
},
"titleo_color": "#454321",
"titleo_cont": "Happy Songkran",
"titlet_color": "#454321",
"titlet_cont": "",
"bac_pic": "https://gcs.beautyplus.com/2845b996950260271c47adf6e3437024.png",
"describe_copy": "",
"describe_color": "",
"content": [],
"year": {
"status": 1,
"product_id": "beautyplus.subs.month12.func00.lev00.campaign.songkranfestival.ver0",
"discount": 0.8,
"free_days": 7,
"describe": "",
"button_copy": "dddddd",
"badge_bg_color": "#454321",
"badge_text_color": "#454321",
"badge_border_inside_color": "#4543fdfdf321",
"save_bg_selected_color": "#454321",
"save_text_selected_color": "#454321",
"save_bg_default_color": "#454321",
"save_text_default_color": "#454321",
"mark": ""
},
"month": {
"status": 1,
"product_id": "beautyplus.subs.month1.func00.lev00.campaign.songkranfestival.ver0",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"week": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"lifetime": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"quarter": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"cont_color": "",
"img_background": "https://gcs.beautyplus.com/e0e54b954e9639507f0fd7c2f2145b8e.png",
"video_background": "",
"home_ent": "https://gcs.beautyplus.com/ab152a93e5f2d025782ba9e00b651997.png",
"setting_entry": "",
"banner": "",
"shoot": "",
"sub_color": "fdafadf",
"sub_blacolor": "fdafadf",
"start_ed": 0,
"end_ed": 0,
"eff_status": 2,
"mtg_id": "BP_SUB_00001517",
"highlight": "ddfdfdfsfadsfa",
"sku_bg_default_color": "#454321",
"sku_bg_selected_color": "#454321",
"price_default_color": "#454321",
"price_selected_color": "#454321",
"discount_bg_color": "#454321",
"discount_text_color": "#454321",
"background_color": "#dfdf11",
"terms_background_color": "#454321",
"foreground": "https://dfdfdf"
}
],
"daily": [],
"promotion": [
{
"id": 19411,
"name": "测试-Tier2国家",
"countdown": {
"start_time": 0,
"end_time": 0,
"countdown_color": "",
"status": 2,
"countdown_text_color": ""
},
"titleo_color": "",
"titleo_cont": "Happy Halloween",
"titlet_color": "",
"titlet_cont": "",
"bac_pic": "https://gcs.beautyplus.com/97b9926acea6b5969eaba2a50c850193.png",
"describe_copy": "",
"describe_color": "",
"content": [],
"year": {
"status": 1,
"product_id": "beautyplus.subs.month12.func00.lev00.campaign.halloween.ver4",
"discount": 0.8,
"free_days": 7,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"month": {
"status": 1,
"product_id": "beautyplus.subs.month1.func00.lev00.campaign.halloween.ver4",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"week": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"lifetime": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"quarter": {
"status": 2,
"product_id": "",
"discount": 0,
"free_days": 0,
"describe": "",
"button_copy": "",
"badge_bg_color": "",
"badge_text_color": "",
"badge_border_inside_color": "",
"save_bg_selected_color": "",
"save_text_selected_color": "",
"save_bg_default_color": "",
"save_text_default_color": "",
"mark": ""
},
"cont_color": "",
"img_background": "https://gcs.beautyplus.com/6333a2d8b333f0f342ad0b50744b36ab.png",
"video_background": "",
"home_ent": "https://gcs.beautyplus.com/925731bcb5a34e764dc100960a72e254.jpeg",
"setting_entry": "",
"banner": "",
"shoot": "",
"sub_color": "",
"sub_blacolor": "",
"start_ed": 1666627200,
"end_ed": 1666843199,
"eff_status": 1,
"mtg_id": "BP_SUB_00000278",
"highlight": "",
"sku_bg_default_color": "",
"sku_bg_selected_color": "",
"price_default_color": "",
"price_selected_color": "",
"discount_bg_color": "",
"discount_text_color": "",
"background_color": "",
"terms_background_color": "",
"foreground": ""
}
]
},
"message": "success",
"update": "263aeefafe0b56ae9d77f1ffb77cf984"
}