Skip to content

Commit

Permalink
fix:修复值为0、'0'的参数会被过滤的问题 (#2864)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viminice authored Dec 4, 2024
1 parent 11b6dec commit 3be0db1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Pay/LegacySignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public function sign(array $params): array
'sub_appid' => $params['sub_appid'] ?? null,
],
$params
)
),
static fn ($value, $key) => !($key === 'sign' || $value === '' || is_null($value))
);

ksort($attributes);
Expand Down

0 comments on commit 3be0db1

Please sign in to comment.