fix: check webhook key of Wecom tool in valid UUID form and fix typo (#2719)
This commit is contained in:
parent
405a00bb2c
commit
0ac250a035
3 changed files with 16 additions and 5 deletions
9
api/core/tools/utils/uuid_utils.py
Normal file
9
api/core/tools/utils/uuid_utils.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import uuid
|
||||
|
||||
|
||||
def is_valid_uuid(uuid_str: str) -> bool:
|
||||
try:
|
||||
uuid.UUID(uuid_str)
|
||||
return True
|
||||
except Exception:
|
||||
return False
|
||||
Loading…
Add table
Add a link
Reference in a new issue