瀏覽代碼

更新 OrderController 中的 FlowDirection 检查

修改了 OrderController.cs 文件中的 OrderController 类。
在原有的 if 条件判断中,增加了对 EFlowDirection.Other 的检查。
原代码:if (dto.FlowDirection is not EFlowDirection.OrgToOrg)
修改后代码:if (dto.FlowDirection is not EFlowDirection.OrgToOrg and not EFlowDirection.Other)
这意味着现在 dto.FlowDirection 既不能是 EFlowDirection.OrgToOrg 也不能是 EFlowDirection.Other 才会进入 if 语句块。
xf 1 周之前
父節點
當前提交
72093886d9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Hotline.Api/Controllers/OrderController.cs

+ 1 - 1
src/Hotline.Api/Controllers/OrderController.cs

@@ -7223,7 +7223,7 @@ public class OrderController : BaseController
                 BusinessType = dto.BusinessType
             };
 
-            if (dto.FlowDirection is not EFlowDirection.OrgToOrg)
+            if (dto.FlowDirection is not EFlowDirection.OrgToOrg and not EFlowDirection.Other)
             {
                 //重新计算期满时间
                 ExpiredTimeWithConfig expiredTime;