string url = ConfigurationSettings.AppSettings["resurl"].ToString(); var wc = new WebClient();var p = "{'accountname':'tykj20180101','accountpwd':'tykj20180101','boxnumber':'" + Chest_Site.ToString() + "'}";var buffer = System.Text.Encoding.UTF8.GetBytes(p);string str;try{str = System.Text.Encoding.UTF8.GetString(wc.UploadData(url, "POST", buffer));}catch{string script = "alert('打开失败! ');";return JavaScript(script);}