bugfix
This commit is contained in:
parent
4a010a2ccd
commit
75fe0d30f3
@ -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("签名验证失败")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user