mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-05 19:41:44 +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
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = '1.2.36';
|
const VERSION = '1.2.37';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 静态配置
|
* 静态配置
|
||||||
|
@ -46,7 +46,8 @@ class WXBizDataCrypt
|
|||||||
if ($dataObj == null) {
|
if ($dataObj == null) {
|
||||||
return ErrorCode::$IllegalBuffer;
|
return ErrorCode::$IllegalBuffer;
|
||||||
}
|
}
|
||||||
if ($dataObj->watermark->appid != $this->appid) {
|
// 兼容新版本无 watermark 的情况
|
||||||
|
if (isset($dataObj->watermark) && $dataObj->watermark->appid != $this->appid) {
|
||||||
return ErrorCode::$IllegalBuffer;
|
return ErrorCode::$IllegalBuffer;
|
||||||
}
|
}
|
||||||
$data = $result;
|
$data = $result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user