dever hace 3 años
padre
commit
f12a19f635
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/Yspay.php

+ 1 - 1
lib/Yspay.php

@@ -54,7 +54,7 @@ class Yspay extends Core
 		$string .= $this->config['key'];
 
 		if ($input['signType'] == 'SHA256') {
-			$string = sha1($string);
+			$string = hash("sha256", $string);
 		} else {
 			$string = md5($string);
 		}