Skip to content

Commit

Permalink
implode
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoutianliang committed Nov 30, 2020
1 parent b5d61c4 commit e25878c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: php
php:
- '7.2'
- '7.3'
- '7.4'

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.3",
"symfony/event-dispatcher": "^5.1",
"guzzlehttp/guzzle": "^7.2.0",
"ext-libxml": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/ShrimpWechat.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public static function verifyRequest($token, array $query)
}
$params = [$token, $query['timestamp'], $query['nonce']];
sort($params, SORT_STRING);
$sign = sha1(implode($params, ''));
$sign = sha1(implode($params));
if ($sign == $query['signature']) {
return true;
}
Expand Down

0 comments on commit e25878c

Please sign in to comment.