public static double getDayCount(DateTime begin, DateTime end) { if (Login()) { WindData wd = windHandle.tdayscount(begin, end, "Days=Alldays"); object getData = wd.getDataByFunc("wsq", false); if (checkError(wd) != 0) { return(0); } if (getData is object[, ])//转化为2维数组 { object[,] odata = (object[, ])getData; string price = odata[0, 0].ToString(); return(double.Parse(price)); } } return(0); }