/// <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); }
private void button6_Click(object sender, EventArgs e) { Txml key = new Txml(); textBox1.Text = "{\"DateTime\": \"" + date + "\",\"KEY\": \"" + key.Key() + "\", \"DB\": \"bwshopsy_01\",\"Parm\": \"MDAwMDI=\"}"; }
/// <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); }
/// <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)); }