예제 #1
0
        void bind()
        {
            //setcookies("api_uid", "rBQEGVyEcqajxSXXHdgWAg==");
            //setcookies("Hm_lvt_96d9d92b8a4aac83bc206b6c9fb2844a", "1557407896,1557408269,1557499888,1557544239");
            //setcookies("UM_distinctid", "16c90459b2227-0151cd9b7dd60e-43450521-1fa400-16c90459b24c7");
            //setcookies("ua", "Mozilla%2F5.0%20(Windows%20NT%206.1%3B%20WOW64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F69.0.3497.100%20Safari%2F537.36");
            //setcookies("webp", "1");
            //setcookies("CNZZDATA1256793290", "1526114749-1566392675-https%253A%252F%252Fmobile.yangkeduo.com%252F%7C1574561620");
            //setcookies("msec", "1800000");
            //setcookies("rec_list_mall_bottom", "rec_list_mall_bottom_hjpSJh");//测试是否需要
            //setcookies("rec_list_orders", "rec_list_orders_Lm90jL");//测试是否需要
            //setcookies("group_rec_list", "group_rec_list_EJkdal");//测试是否需要
            //setcookies("group_rec_list", "group_rec_list_EJkdal");//测试是否需要



            //setcookies("JSESSIONID", "B115F172C0F9B3C67121C14B91022390");//测试是否需要

            //需要改变的
            //setcookies("_nano_fp", "XpdYXp9JXpmbXqdynC_wnc3izkRTuCCIwjlXTMPM");
            //setcookies("pdd_user_uin", "S2BYMXSYU3H7XKJEZP64VHHA6A_GEXDA");

            string pdd_user_id    = xml.GetValue("pdd_user_id");
            string PDDAccessToken = xml.GetValue("PDDAccessToken");

            //string pdd_user_id = "4844821835342";
            //string PDDAccessToken = "6AAB6XWY2A2SCTWGAY3OW7T5IN44SZ7KEXRHNG6F7XAGF4X7AUPQ1124e6e";
            setcookies("pdd_user_id", pdd_user_id);
            setcookies("PDDAccessToken", PDDAccessToken);
            txt_token.Text = PDDAccessToken;
            //setcookies("pdd_user_id", "4897104401726");
            //setcookies("PDDAccessToken", "PTTIVUXHCETYNBRBRDUXMU4ZBKS27DL5KIHUOS5CCWHVBGVC2NNQ1113e9e");
        }
예제 #2
0
 bool GetXml()
 {
     try
     {
         if (!string.IsNullOrEmpty(site))
         {
             XMLHelpers xml = new XMLHelpers("BaiduPanSearch");
             webUrl      = xml.GetValue(site + "WebUrl");
             webUrl      = webUrl.Replace("SearchKey", key).Replace("PageIndex", pageNum.ToString());
             xpathNodes  = xml.GetValue(site + "Nodes");
             xpathUrl    = xml.GetValue(site + "Url");
             xpathName   = xml.GetValue(site + "Name");
             xpathSize   = xml.GetValue(site + "Size");
             xpathUpload = xml.GetValue(site + "Upload");
             if (string.IsNullOrEmpty(webUrl))
             {
                 return(false);
             }
         }
     }
     catch (Exception ex)
     {
         ex.ToShow();
         return(false);
     }
     return(true);
 }
예제 #3
0
 void BindSite()
 {
     try
     {
         XMLHelpers xML  = new XMLHelpers("BaiduPanSearch");
         string     temp = xML.GetValue("WebNameList");
         if (!string.IsNullOrEmpty(temp))
         {
             string[] siteList = temp.ToSplit("|");
             cb_site.Items.Clear();
             foreach (var item in siteList)
             {
                 cb_site.Items.Add(item);
             }
         }
     }
     catch (Exception ex)
     {
         ex.ToShow();
     }
 }
예제 #4
0
 string getDoufusiConfig()
 {
     return(xml.GetValue("PinDuoDuo_PrintLabel_Doufusi"));
 }