vtils

Home > x > WechatMessageCrypto > checkSignature

WechatMessageCrypto.checkSignature() method

检查签名是否正确。

Signature:

checkSignature(signature: string, payload: WechatMessageCryptoSignOptions): boolean;

Parameters

Parameter Type Description
signature string 要验证的签名
payload WechatMessageCryptoSignOptions 载荷

Returns:

boolean