/// <summary>
        /// 玩家活动卡查询
        /// </summary>
        /// <returns></returns>
        public Message RcUserActiveCard_Query()
        {
            string activeCode = null;
            string strDesc    = null;
            int    atype      = 0;

            System.Collections.ArrayList ds = new System.Collections.ArrayList();
            try
            {
                activeCode = Encoding.Default.GetString(msg.m_packet.m_Body.getTLVByTag(TagName.RayCity_activename).m_bValueBuffer);
                TLV_Structure strut1 = new TLV_Structure(TagName.RayCity_ActionType, 4, msg.m_packet.m_Body.getTLVByTag(TagName.RayCity_ActionType).m_bValueBuffer);
                atype = (int)strut1.toInteger();

                SqlHelper.log.WriteLog(lg.API_Look + lg.RayCityAPI_Name + "+>" + lg.RayCityAPI_Account + activeCode + lg.RayCityAPI_ActiveCard_Query);
                Console.WriteLine(DateTime.Now + lg.API_Look + lg.RayCityAPI_Name + "+>" + lg.RayCityAPI_Account + activeCode + lg.RayCityAPI_ActiveCard_Query);
                if (atype == 1)
                {
                    ds = CharacterInfo.ActiveCard_Query(activeCode, 1, ref strDesc);
                }
                else if (atype == 2)
                {
                    ds = CharacterInfo.ActiveCard_Query(activeCode, 2, ref strDesc);
                }

                if (ds != null && ds.Count > 0)
                {
                    Query_Structure[] structList = new Query_Structure[1];

                    Query_Structure strut = new Query_Structure((uint)ds.Count);

                    byte[] bytes = TLV_Structure.ValueToByteArray(TagFormat.TLV_STRING, ds[0]);
                    strut.AddTagKey(TagName.RayCity_rccdkey, TagFormat.TLV_STRING, (uint)bytes.Length, bytes);

                    bytes = TLV_Structure.ValueToByteArray(TagFormat.TLV_STRING, ds[1]);
                    strut.AddTagKey(TagName.RayCity_getuser, TagFormat.TLV_STRING, (uint)bytes.Length, bytes);

                    bytes = TLV_Structure.ValueToByteArray(TagFormat.TLV_STRING, ds[2]);
                    strut.AddTagKey(TagName.RayCity_gettime, TagFormat.TLV_STRING, (uint)bytes.Length, bytes);

                    bytes = TLV_Structure.ValueToByteArray(TagFormat.TLV_STRING, ds[3]);
                    strut.AddTagKey(TagName.RayCity_use_state, TagFormat.TLV_STRING, (uint)bytes.Length, bytes);

                    bytes = TLV_Structure.ValueToByteArray(TagFormat.TLV_STRING, ds[4]);
                    strut.AddTagKey(TagName.RayCity_activename, TagFormat.TLV_STRING, (uint)bytes.Length, bytes);

                    structList[0] = strut;

                    return(Message.COMMON_MES_RESP(structList, Msg_Category.RAYCITY_ADMIN, ServiceKey.RayCity_ActiveCard_Query_Resp, 5));
                }
                else
                {
                    return(Message.COMMON_MES_RESP(strDesc, Msg_Category.RAYCITY_ADMIN, ServiceKey.RayCity_ActiveCard_Query_Resp, TagName.ERROR_Msg, TagFormat.TLV_STRING));
                }
            }
            catch (System.Exception)
            {
                return(Message.COMMON_MES_RESP(strDesc, Msg_Category.RAYCITY_ADMIN, ServiceKey.RayCity_ActiveCard_Query_Resp, TagName.ERROR_Msg, TagFormat.TLV_STRING));
            }
        }