Get all key-value values in the bcore_config.json file and customized the key-value values in the configuration module.If the key values in the configuration module conflicts with the bcore_config.json file, the value in the configuration module shall prevail.
Get the gameID assigned by Yoozoo Interface invoke:
NSString *gameId = [SuperSDK invokeString:BCORE_MODULE_CONFIG funcName:BCORE_FUNC_GET_VALUE parameters:@{@"key" : @"yz_game_id"}];
NSLog(@"获取的gameId为:%@", gameId);
Result printing:
获取的gameId为:99
Get the custom parameter 1, interface invoke: Interface invoke:
NSString * extend = [SuperSDK invokeString:BCORE_MODULE_CONFIG funcName:BCORE_FUNC_GET_VALUE parameters:@{@"key" : @"extend"}];
NSLog(@"获取的extend为:%@", extend);
Result printing:
获取的extend为:自定义参数一
Get the custom parameter 2, interface invoke: Interface invoke:
NSString * extend2 = [SuperSDK invokeString:BCORE_MODULE_CONFIG funcName:BCORE_FUNC_GET_VALUE parameters:@{@"key" : @"extend2"}];
NSLog(@"获取的extend2为:%@", extend2);
Result printing:
获取的extend2为:自定义参数二
Get the custom parameter 3, interface invoke: Interface invoke:
NSString * extend3 = [SuperSDK invokeString:BCORE_MODULE_CONFIG funcName:BCORE_FUNC_GET_VALUE parameters:@{@"key" : @"extend3"}];
NSLog(@"获取的extend3为:%@", extend3);
Result printing:
获取的extend3为:自定义参数三
Get the custom parameter 4, interface invoke: Interface invoke:
NSString * extend4 = [SuperSDK invokeString:BCORE_MODULE_CONFIG funcName:BCORE_FUNC_GET_VALUE parameters:@{@"key" : @"extend4"}];
NSLog(@"获取的extend4为:%@", extend4);
Result printing:
获取的extend4为:自定义参数四
String constant | Actual string | Description |
---|---|---|
BCORE_MODULE_CONFIG | config | Configuration module name |
BCORE_FUNC_GET_VALUE | geValue | The method name of getting the configuration |