We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef47db4 commit 7f53d12Copy full SHA for 7f53d12
src/MiniProgram.php
@@ -53,7 +53,7 @@ public function getAccessTokenData()
53
);
54
$url = self::API_HOST . self::ACCESS_TOKEN_PATH . http_build_query($urlParamArr);
55
$res = json_decode(Common::httpRequest($url), true);
56
- if ($res['errcode']) {
+ if (isset($res['errcode']) && $res['errcode']) {
57
return '';
58
} else {
59
return $res;
0 commit comments