Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
狂奔的螞蟻 committed May 7, 2020
1 parent afad37a commit 8cf05ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "firstphp/firstphp-wxapp",
"type": "library",
"license": "MIT",
"version": "1.6.5",
"version": "1.6.6",
"authors": [
{
"name": "狂奔的蚂蚁",
Expand Down
2 changes: 1 addition & 1 deletion src/WxappClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function decryptData(string $encryptedData = '', string $iv = '', string
return ['code' => self::ILLEGAL_BUFFER, 'message' => 'buffer is error'];
}

if ($dataObj->watermark->appid != $this->appid) {
if (isset($dataObj['watermark']['appid']) && $dataObj['watermark']['appid'] != $this->appid) {
return ['code' => self::ILLEGAL_BUFFER, 'message' => 'Hacking Attempt'];
}

Expand Down

0 comments on commit 8cf05ac

Please sign in to comment.