Get parameters, currently you can only get opId, opGameId.
Interface description: Get the parameters defined by the Youzu module, such as opId
Interface invoke:
//获取opId
Map<String, String> map = new HashMap<String, String>();
map.put(BCoreConst.youzu.KEY, BCoreConst.youzu.KEY_OPID);
String opId = SuperSDK.invokeString(BCoreConst.youzu.MODULE_NAME, BCoreConst.youzu.FUNC_GET_VALUE, map);
Log.d(TAG, "opId="+opId);
Log printing:
//母包
opId=2150
//渠道包
opId=2106
Interface description: Get the parameters defined by the Youzu module, such as opGameId
//获取opGameId
Map<String, String> map = new HashMap<String, String>();
map.put(BCoreConst.youzu.KEY, BCoreConst.youzu.KEY_OP_GAME_ID);
String opGameId = SuperSDK.invokeString(BCoreConst.youzu.MODULE_NAME, BCoreConst.youzu.FUNC_GET_VALUE, map);
Log.d(TAG, "opGameId="+opGameId);
Log printing:
//母包
opGameId=0
//渠道包
opGameId=2033
Constant string | Actual string | Description |
---|---|---|
BCoreConst.youzu.MODULE_NAME | youzu | Module name |
BCoreConst.youzu.FUNC_GET_VALUE | getValue | The method of getting key-value under the configuration module |
BCoreConst.youzu.KEY | key | Hold one of the following key values |
BCoreConst.youzu.KEY_OPID | opid | Get the value of key=opid |
BCoreConst.youzu.KEY_OP_GAME_ID | opgameid | Get the value of key=opgameid |