Esempio n. 1
0
        //通过路由密码计算出当前可用的stok的url编码
        public String getLinkStok(String routerPwd)
        {
            String firstEncrypt = encrypt(routerPwd, locaShort, locaLong);

            String SLVerCode = getSLVerCode();
            String netShort  = getNetShort(SLVerCode);

            if (netShort == null)
            {
                Console.WriteLine("getLinkStok() : getNetShort fail");
                return(null);
            }
            String netLong = getNetLong(SLVerCode);

            if (netLong == null)
            {
                Console.WriteLine("getLinkStok() : getNetLong fail");
                return(null);
            }

            String noTranscodingStok = encrypt(netShort, firstEncrypt, netLong);

            return(networkSup.UrlEncode(noTranscodingStok));
        }