1.0 TimeSpan
1 TimeSpan passTime = (TimeSpan)(DateTime.Now - curUser.refuseTime); 2 if (passTime.Days * 24 + passTime.Hours < 24) 3 { 4 string cs = string.Format("您撤单过后,24小时内不能接单,还要等{0}小时.", 24 - passTime.Hours); 5 return WriteError(cs); 6 }
时间: 2024-12-18 09:45:41