xf 11 月之前
父節點
當前提交
098722a1c0
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/Hotline.Application/Handlers/FlowEngine/WorkflowRecallHandler.cs

+ 5 - 1
src/Hotline.Application/Handlers/FlowEngine/WorkflowRecallHandler.cs

@@ -62,7 +62,11 @@ public class WorkflowRecallHandler : INotificationHandler<RecallNotify>
                 _mapper.Map(workflow, order);
                 if (notification.TargetStep.StepType is EStepType.Start)
                 {
-                    var isRecallToSeatDesignated = bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.IsRecallToSeatDesignated).SettingValue[0]);
+                    if (!bool.TryParse(
+                            _systemSettingCacheManager.GetSetting(SettingConstants.IsRecallToSeatDesignated)?.SettingValue[0],
+                            out var isRecallToSeatDesignated))
+                        isRecallToSeatDesignated = false;
+                    //var isRecallToSeatDesignated = bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.IsRecallToSeatDesignated).SettingValue[0]);
                     order.Status = EOrderStatus.SpecialToUnAccept;
                     if (isRecallToSeatDesignated)
                     {