bugfix
This commit is contained in:
parent
4a010a2ccd
commit
75fe0d30f3
@ -163,11 +163,11 @@ class WOAHandler:
|
||||
try:
|
||||
if echo_str:
|
||||
# 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
|
||||
else:
|
||||
# POST 请求:验证签名 (不返回 echo_str,只返回 True)
|
||||
self.crypto.check_signature(signature, timestamp, nonce)
|
||||
self.crypto._check_signature(signature, timestamp, nonce)
|
||||
return True, None
|
||||
except InvalidSignatureException:
|
||||
logger.warning("签名验证失败")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user