修改小程序兼容

This commit is contained in:
邹景立 2022-11-12 17:53:28 +08:00
parent a18961eb39
commit 1d453606d3
2 changed files with 3 additions and 2 deletions

2
We.php
View File

@ -91,7 +91,7 @@ class We
* 定义当前版本
* @var string
*/
const VERSION = '1.2.36';
const VERSION = '1.2.37';
/**
* 静态配置

View File

@ -46,7 +46,8 @@ class WXBizDataCrypt
if ($dataObj == null) {
return ErrorCode::$IllegalBuffer;
}
if ($dataObj->watermark->appid != $this->appid) {
// 兼容新版本无 watermark 的情况
if (isset($dataObj->watermark) && $dataObj->watermark->appid != $this->appid) {
return ErrorCode::$IllegalBuffer;
}
$data = $result;