瀏覽代碼

同步更新thinkphp版的解密函数

binsee 10 年之前
父節點
當前提交
bf85dcf787
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Thinkphp/qywechat.class.php

+ 1 - 1
Thinkphp/qywechat.class.php

@@ -1572,7 +1572,7 @@ class PKCS7Encoder
     {
 
         $pad = ord(substr($text, -1));
-        if ($pad < 1 || $pad > 31) {
+        if ($pad < 1 || $pad > 32) {
             $pad = 0;
         }
         return substr($text, 0, (strlen($text) - $pad));