@@ -41,7 +41,8 @@ |
||
41 | 41 | * |
42 | 42 | * @return \Closure|string |
43 | 43 | */ |
44 | -function get_encrypt_method(string $signType, string $secretKey = '') { |
|
44 | +function get_encrypt_method(string $signType, string $secretKey = '') |
|
45 | +{ |
|
45 | 46 | if ('HMAC-SHA256' === $signType) { |
46 | 47 | return function ($str) use ($secretKey) { |
47 | 48 | return hash_hmac('sha256', $str, $secretKey); |