说明:

    以下错误是支付宝公钥(alipay_public_key)与签名类型(sign_type)不匹配导致

   Signature length not correct: got 128 but was expecting 256(签名长度不正确:得到128,但预期为256)

   Signature length not correct: got 256 but was expecting 128 (签名长度不正确:得到256,但预期为128)

    Signature length not correct: got 257 but was expecting 256(签名长度不正确:得到257,但预期为256)

解决方案:

    首先:检查请求参数查看自己的sign_type=RSA还是RSA2

    如果是RSA:请使用

收藏 打印