private void QueryMaxCharIdx(ushort game_db_id)
        {
            DBID db_id = new DBID();

            db_id.game_id = game_db_id;
            SQLCharHandle.QueryMaxCharIdx(ServerConfig.net_info.server_realm, db_id, max_id =>
            {
                long next_char_idx = max_id;
                if (next_char_idx == 0)
                {//没有数据,则初始化起始值
                    next_char_idx = ServerConfig.net_info.server_realm;
                    next_char_idx = next_char_idx * GlobalID.INIT_CHAR_IDX;
                }
                m_max_char_idx.Add(game_db_id, next_char_idx);
                Log.Info("next_char_idx " + game_db_id + " :" + next_char_idx);
            });
        }
 public void InitNextCharIdx()
 {
     if (m_srv_realm_idx > 0)
     {
         SQLCharHandle.QueryMaxCharIdx(m_srv_realm_idx, max_id =>
         {
             m_next_char_idx = max_id;
             if (m_next_char_idx == 0)
             {//没有数据
                 m_next_char_idx = m_srv_realm_idx;
                 m_next_char_idx = m_next_char_idx * 10000000000;
             }
             Log.Info("next_char_idx:" + m_next_char_idx);
         });
     }
     else
     {
         Log.Warning("未连接上世界服");
     }
 }