mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-05 01:42:45 +08:00
修改小程序兼容
This commit is contained in:
parent
a18961eb39
commit
1d453606d3
2
We.php
2
We.php
@ -91,7 +91,7 @@ class We
|
||||
* 定义当前版本
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = '1.2.36';
|
||||
const VERSION = '1.2.37';
|
||||
|
||||
/**
|
||||
* 静态配置
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user