open-type="getPhoneNumber"
为什么我在获取手机号这个按钮所在页面停留时间一长,停1分钟左右,再点这个按钮,选择手机号援权后,后台总报下面这个错误。为了调试我这个页面不跳转,然后我再点击,只要连续点,每次不隔30秒以上,都可以成功。我能确保前后端传递的encryptedData, iv, code 一样。而且后台java,是可以用code换到sessionKey的。
encryptedData:VushTQL5iyibERuJsN7EOJiaiXuGWHWDVdngO+gYII/afQ8Of9IJ2h9LOmBZjjweq/Rfq37BRkwGHkMmNXkxQtBib7Yxw13m5Oe+l24moArpZTEYqz2SPQ3hj6I0v+EHdWwN+S2RN6Yk/x9soWkmsLjvV9xpS5D3q+macmA75qavUILvMzquk+Xpw4DYnCeTLIek5714v0EroqNd9x+07g==
sessionKey:cef2MlMRk79UuENneqdDBg==
iv:pqMB3Z7KF4BnMlmCHUhizQ==
javax.crypto.BadPaddingException: pad block corrupted
at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.doFinal(Unknown Source)
at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
at javax.crypto.Cipher.doFinal(Cipher.java:2168)
…