4) 玩家信息

功能说明:

研发方可以在游戏登录成功后上传玩家信息到aihelp后台.

接口形式:

public void updateUserInfo(String userId, String userName,String serverId,String userTags,JSONObject customData);

参数说明:

userId: roleid(没有传“”)

userName: 用户名称(没有传“”)

serverId: 区服id(没有传“”)

userTags: 用户标签(必须),多个标签之间以「,」分隔,默认为空字符串

customData: 用户信息附加字段(必须),格式:{“key”:“value”, “key”:“value”} ,默认为空字符串

接口示例:

JSONObject customData = new JSONObject();
customData.put("r2uid", "xxxx");//必传
customData.put("device_id", "xxxx");//必传
customData.put("level", 34);//后面字段的随便加

RNSDK.getInstance().updateAIHelpUserInfo(roleid,roleName,serverId,"AIhelp test",customData);

Last updated

Was this helpful?