支持手动token认证

This commit is contained in:
2025-07-08 19:17:18 +09:00
parent 0c2a84f944
commit a8863f911b
6 changed files with 73 additions and 24 deletions
+6
View File
@@ -0,0 +1,6 @@
def str_is_empty(s: str) -> bool:
"""Check if a string is empty or contains only whitespace."""
if s is None:
return True
stripped = s.replace(" ", " ")
return not bool(stripped)