高级开关(Deprecated)
使用产品配置替代
- Java
- Kotlin
- Objective-C
- Swift
MarvelManager.getInstance().advancedSwitch(MarvelConfig.getInstance().countryCode, MarvelConfig.getInstance().language, switchKeyET.getText().toString(), updateET.getText().toString(), new AWHttpOriginalCallback() {
@Override
public void response(int code, String data) {
}
});
MarvelManager.getInstance().advancedSwitch(countrycode,language,key,update,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().advancedSwitch(with: language, withCountryCode: countryCode, withKey: key, withUpdate: update){ result, errorMsg, data in
}
参数
- language:语言
- countryCode:国家
- key: 从AW管理后台获取的key(可空,未填时返回全部)
- update: 当前MD5值(可空)
返回
{
"status": 1,
"key": "key",
"value": "ceshi",
"update": "c7c7480df826d81e5146d52e9c1f83b9"
}