瀏覽代碼

Merge branch 'test' of http://110.188.24.182:10023/Fengwo/hotline into test

tangjiang 4 月之前
父節點
當前提交
ffbc502507
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/Hotline.Share/Dtos/Order/OrderDto.cs

+ 2 - 3
src/Hotline.Share/Dtos/Order/OrderDto.cs

@@ -656,14 +656,13 @@ namespace Hotline.Share.Dtos.Order
 
         public string RemainingTimeTextVoid()
         {
-            DateTime now = DateTime.Now;
             if (Status >= EOrderStatus.Filed && FiledTime !=null)
             {
-                return Math.Round((ExpiredTime.Value - FiledTime.Value).TotalDays,2) + "天";
+                return Math.Round((ExpiredTime.Value - FiledTime.Value).TotalDays,1) + "天";
             }
             else if(Status < EOrderStatus.Filed && ExpiredTime!=null)
             {
-                return Math.Round((ExpiredTime.Value - DateTime.Now).TotalDays,2) + "天";
+                return Math.Round((ExpiredTime.Value - DateTime.Now).TotalDays,1) + "天";
             }
             else
             {