Commit e2aa0bdb authored by 吴春's avatar 吴春

提交代码

parent 6ff1c1ed
...@@ -142,7 +142,7 @@ namespace Mall.WebApi.Controllers.Product ...@@ -142,7 +142,7 @@ namespace Mall.WebApi.Controllers.Product
} }
else else
{ {
TimeSpan sp = tempEndTime.Subtract(tempStartTime); TimeSpan sp = tempEndTime.Date.Subtract(tempStartTime.Date);
demodel.UseDay = sp.Days + 1; demodel.UseDay = sp.Days + 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment