Skip to content

Commit

Permalink
【6.x】修复微信支付V2服务商分账接口验签失败的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Abbotton committed Apr 25, 2024
1 parent 5e66be1 commit 091eaaa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Pay/LegacySignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ public function sign(array $params): array
$signType = fn (string $message): string => hash_hmac('sha256', $message, $attributes['key']);
} else {
$signType = 'md5';
unset($params['sign_type']);
}

unset($params['sign_type']);

$sign = call_user_func_array($signType, [urldecode(http_build_query($attributes))]);

if (! is_string($sign)) {
Expand Down

0 comments on commit 091eaaa

Please sign in to comment.