xielin hace 6 años
padre
commit
9a2251db69
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      app/Helper/helper.php

+ 2 - 0
app/Helper/helper.php

@@ -22,6 +22,8 @@ function generateSign(array $params, $secret_key)
 
     // 生成 URL-encode 之后的请求字符串
     $str = http_build_query($params);
+
+    $str = urldecode($str);
     // 将请求字符串使用MD5加密后,再转换成大写,并返回
     return strtoupper(MD5($str));
 }