import android.text.TextUtils;
import android.text.TextUtils;
import io.gamepot.common.GamePotSendLogCharacter;
import io.gamepot.common.GamePotSendLog;
String name = "角色名称";
String level = "10";
String serverid = "svn_001";
String playerid = "283282191001";
String userdata = "";
GamePotSendLogCharacter obj = new GamePotSendLogCharacter();
if(!TextUtils.isEmpty(name))
obj.put(GamePotSendLogCharacter.NAME, name);
if(!TextUtils.isEmpty(level))
obj.put(GamePotSendLogCharacter.LEVEL, level);
if(!TextUtils.isEmpty(serverid))
obj.put(GamePotSendLogCharacter.SERVER_ID, serverid);
if(!TextUtils.isEmpty(playerid))
obj.put(GamePotSendLogCharacter.PLAYER_ID, playerid);
if(!TextUtils.isEmpty(playerid))
obj.put(GamePotSendLogCharacter.USERDATA, userdata);
// result:日志传输成功时为true,否则为false
boolean result = GamePotSendLog.characterInfo(obj);