Exemplo n.º 1
0
        public string GenerateTodo008()
        {
            Txml key = new Txml();
            //-------------------
            //JObject jo = (JObject)JsonConvert.DeserializeObject(token);
            string jsondata = txt_data.Text; // "{ \"strsing\":\"MDAwMDAwLGdoXzg4NDhlNjllY3R4MSx6YndjdHgsMywxLDAwMDAyLDAwMDMzLG8yOFZ0dDdMRHlyMXdkS1Jqelc0OC1pYy0tcGs=\" }";

            string url = txt_url.Text;       // "http://192.168.4.106:5921/wshopCtxOrderLockDel";
            string res = PostUrl(url, jsondata);

            return(res);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 2.	会员信息
        /// </summary>
        /// <returns></returns>
        public static string GenerateTodo04()
        {
            // TextBox textBox = new TextBox();
            Txml key = new Txml();
            //-------------------
            //JObject jo = (JObject)JsonConvert.DeserializeObject(token);
            string jsondata = "{\"DateTime\": \"" + DateTime.Now.ToString("yyyyMMddHHmmss") + "\",\"KEY\": \"" + key.Key() + "\",\"DB\": \"bwshopsy_01\",\"Parm\": \"" + Base64Helper.Base64Encode(NAME) + "\",\"JsonData\": true}";
            string url      = "http://192.168.4.106:5555/bwshop/GetVipInfo";
            string res      = HttpResponse.GetResponseData(jsondata, url);

            return(res);
        }
Exemplo n.º 3
0
        public string GenerateTodo007()
        {
            Txml key = new Txml();
            //-------------------
            //JObject jo = (JObject)JsonConvert.DeserializeObject(token);
            string jsondata = "{ \"strsing\":\"MDAwMDAwLGdoXzRhNDRjZDJmOGEzMix6Ync4ODQ4LDMsMywwMDAwMiwwMDAyMCxvMjhWdHQ3TER5cjF3ZEtSanpXNDgtaWMtLXBr\" }";

            string url = "http://192.168.4.106:5924/dwtPeopleInfo";
            string res = PostUrl(url, jsondata);

            return(res);
        }
Exemplo n.º 4
0
        public string GenerateTodo006()
        {
            Txml key = new Txml();
            //-------------------
            //JObject jo = (JObject)JsonConvert.DeserializeObject(token);
            string jsondata = "{ \"strsing\":\"MDAwMDAwLGdoXzRhNDRjZDJmOGEzMix6Ync4ODQ4LDMsMywwMDAwMiwwMDAyMCxvMjhWdHQ3TER5cjF3ZEtSanpXNDgtaWMtLXBr\",\"pub_orgid\":\"13100000012\",\"wx_openid\":\"o28Vtt7LDyr1wdKRjzW48-ic--pk\" }";
            // ub_orgid\":\"18122226669\",\"wx_openid\":\"o28Vtt7LDyr1wdKRjzW48-ic--pk\",
            string url = "http://192.168.4.106:5924/dwtGetVipCenterInfo";// dwtGetVipCenterInfo/dwtGetVipCenterInfo
            string res = PostUrl(url, jsondata);

            return(res);
        }
Exemplo n.º 5
0
        /// <summary>
        /// 15.	会员余额
        /// </summary>
        /// <returns></returns>
        public string GenerateTodo06()
        {
            Txml key = new Txml();
            //-------------------
            //JObject jo = (JObject)JsonConvert.DeserializeObject(token);
            string jsondata = "{\"DateTime\": \"" + DateTime.Now.ToString("yyyyMMddHHmmss") + "\",\"KEY\": \"" + key.Key() + "\",\"DB\": \"bwshopsy_01\",\"Parm\": \"" + Base64Helper.Base64Encode(NAME) + "\"}";

            string url = "http://192.168.4.106:5555/bwshop/GetVipSpareCash";
            string res = PostUrl(url, jsondata);

            return(Tjson(res));
        }
Exemplo n.º 6
0
        /// <summary>
        /// 1.	测试连接
        /// </summary>
        /// <returns></returns>
        public string GenerateTodo03()
        {
            Txml key = new Txml();

            //-------------------
            //JObject jo = (JObject)JsonConvert.DeserializeObject(token);
            string jsondata = "{\"DateTime\": \"" + DateTime.Now.ToString("yyyyMMddHHmmss") + "\",\"KEY\": \"" + key.Key() + "\",\"DB\": \"bwshopsy_01\",\"Parm\": \"测试连接\"}";

            string url = "http://192.168.4.106:5555/bwshop/test";
            string res = HttpResponse.GetResponseData(jsondata, url);

            return(res);
        }
Exemplo n.º 7
0
        private void button6_Click(object sender, EventArgs e)
        {
            Txml key = new Txml();

            textBox1.Text = "{\"DateTime\": \"" + date + "\",\"KEY\": \"" + key.Key() + "\",	\"DB\": \"bwshopsy_01\",\"Parm\": \"MDAwMDI=\"}";
        }