Skip to content

Commit 4dba182

Browse files
author
Leslie
committed
fix: 修复获取OA接口提示信息不完全的问题
1 parent 3694956 commit 4dba182

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drf_oa_workflow/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ def get_faild_info(self, resp_data: dict):
224224
)
225225
if error_detail:
226226
re_match = re.match(
227-
r"ESB接口执行失败:批次号\(\w+\)(?P<error_msg>.*)", error_detail
227+
r"ESB接口执行失败:批次号\(\w+\)(?P<error_msg>[\s\S]*)",
228+
error_detail,
228229
)
229230
if re_match:
230231
msg = re_match.groupdict()["error_msg"].strip()

0 commit comments

Comments
 (0)