Exemple #1
0
        public static ScanCodeParamModel Prase(string ciphertext)
        {
            ScanCodeParamModel model = null;

            try
            {
                string   plainText = SeatManage.SeatManageComm.AESAlgorithm.UrlDecode(ciphertext);
                string[] strArr    = plainText.Split('&');
                model = new ScanCodeParamModel();
                for (int i = 0; i < strArr.Length; i++)
                {
                    string[] itemArr = strArr[i].Split('=');
                    switch (itemArr[0])
                    {
                    case "readingRoomNum":
                        model.readingRoomNum = itemArr[1];
                        break;

                    case "seatNum":
                        model.seatNum = itemArr[1];
                        break;
                    }
                }
            }
            catch (Exception ex)
            { }
            return(model);
        }
Exemple #2
0
        public ScanCodeParamModel(string ciphertext)
        {
            ScanCodeParamModel model = Prase(ciphertext);

            this.readingRoomNum = model.readingRoomNum;
            this.seatNum        = model.seatNum;
        }