コード例 #1
0
        /// <summary>
        /// Resets the refesh status.
        /// </summary>
        public void ResetRefeshStatus()
        {
            switch (urlIndex)
            {
            case 0:
                urlIndex   = 1;
                RefreshUrl = "http://www.alimama.com";
                break;

            case 1:
                urlIndex   = 2;
                RefreshUrl = "https://www.taobao.com/";
                break;

            case 2:
                urlIndex   = 0;
                RefreshUrl = "https://www.tmall.com/";
                break;

            default:
                urlIndex   = 1;
                RefreshUrl = "http://www.alimama.com";
                break;
            }
            try
            {
                MyUserInfo.TaobaoName = lw.GetTaobaoName();
                MyUserInfo.cookies    = lw.GetCurrentCookies();
                MyUserInfo.cookieJson = lw.GetCurrentCookiesToString();
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }
            RefreshStatus = !RefreshStatus;
        }