// 统计日志:进入游戏 public static void OnAccountLogin(string strServerID, string strUserID) { #if UNITY_WP8 && !UNITY_EDITOR #elif UNITY_ANDROID && !UNITY_EDITOR System.Text.StringBuilder sb = new System.Text.StringBuilder(); JsonWriter writer = new JsonWriter(sb); writer.WriteObjectStart(); writer.WritePropertyName("ServerID"); writer.Write(strServerID); writer.WritePropertyName("UserID"); writer.Write(strUserID); writer.WritePropertyName("OID"); writer.Write(LoginData.accountData.m_oid.ToString()); writer.WritePropertyName("AccessToken"); writer.Write(LoginData.accountData.m_accessToken.ToString()); writer.WriteObjectEnd(); AndroidHelper.platformHelper("onAccountLogin", sb.ToString()); #elif UNITY_IPHONE && !UNITY_EDITOR IOSHelper.onAccountLogin(strServerID, strUserID); #else #endif }