This commit is contained in:
yumoqing 2026-03-02 09:58:31 +08:00
parent 4a010a2ccd
commit 75fe0d30f3

View File

@ -163,11 +163,11 @@ class WOAHandler:
try: try:
if echo_str: if echo_str:
# GET 请求:验证 URL # GET 请求:验证 URL
echo_str = self.crypto.check_signature(signature, timestamp, nonce, echo_str) echo_str = self.crypto._check_signature(signature, timestamp, nonce, echo_str)
return True, echo_str return True, echo_str
else: else:
# POST 请求:验证签名 (不返回 echo_str只返回 True) # POST 请求:验证签名 (不返回 echo_str只返回 True)
self.crypto.check_signature(signature, timestamp, nonce) self.crypto._check_signature(signature, timestamp, nonce)
return True, None return True, None
except InvalidSignatureException: except InvalidSignatureException:
logger.warning("签名验证失败") logger.warning("签名验证失败")