def getSdkConfig(jsonConfig, config): print('getSdkConfig tianyuyou...') if 'tianyuyou' in config: tianyuyou = config['tianyuyou'] if 'metaData' in jsonConfig: meta = jsonConfig['metaData'] else: meta = {} meta['fusion_splash_pic'] = tianyuyou['fusion_splash_pic'] meta['fusion_package_id'] = tianyuyou['fusion_package_id'] meta['fusion_game_id'] = tianyuyou['fusion_game_id'] meta['fusion_app_key'] = tianyuyou['fusion_app_key'] meta['fusion_pf_gameid'] = tianyuyou['fusion_pf_gameid'] placeholders = { 'package_Name':config['name'] } jsonConfig['metaData'] = meta jsonConfig['placeholders'] = placeholders if 'includeOtherPay' in tianyuyou: if tianyuyou['includeOtherPay'] == 0: jsonConfig['libConfig'] = 'nopay' else: jsonConfig['libConfig'] = 'default' else: jsonConfig['libConfig'] = 'default'