示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            UDPSocketAnswerModel answerModel = new UDPSocketAnswerModel("192.168.1.145", 50, null, "1234567890", System.DateTime.Now, "15618920033", "100027", "0001", "20171014300027", 10, "23432");

            UDPSocketAnswerBusiness.SetAnswer(answerModel);

            string key   = "100027" + "_" + "0001";
            string token = "62fb63fcc33c246999246cb440e24b1b0";

            XCGameRouteDeviceCache.AddToken(key, token);
        }
示例#2
0
        public static string SetRadarDeviceToken(string storeId, string segment)
        {
            //设置会员token
            string key   = storeId + "_" + segment;
            string token = System.Guid.NewGuid().ToString("N");

            if (XCGameRouteDeviceCache.ExistTokenByKey(key))
            {
                XCGameRouteDeviceCache.AddToken(key, token);
            }
            else
            {
                XCGameRouteDeviceCache.UpdateTokenByKey(key, token);
            }
            return(token);
        }