@@ -372,7 +372,7 @@ func CheckWorkFlowByBusinessType(reqParams *request.CheckWorkFlowByBusinessTypeR
//根据业务类型获取流程模型ID
workflowTemplateId, err := getWorkTemplateInfoByBusinessTypeApi(reqParams.BusinessType, reqParams.TenantID)
if err != nil {
- if errors.Is(err, errors.New("查询业务类型流程配置异常")) {
+ if err.Error() == "查询业务类型流程配置异常" {
return false, nil
}
return false, err