答案 0 :(得分:3)
经过一些研究后,我发现了这个blog post,这个github issue和pull request。
现在我修复了函数getAccessToken()
,取而代之:
if (strpos(val('content_type', $Info, ''), '/javascript') !== false) {
$Tokens = json_decode($Contents, true);
} else {
parse_str($Contents, $Tokens);
}
用这个:
if (strpos(val('content_type', $Info, ''), '/javascript') !== false) {
$Tokens = json_decode($Contents, true);
} else if (strpos(val('content_type', $Info, ''), '/json') !== false) {
$Tokens = json_decode($Contents, true);
} else {
parse_str($Contents, $Tokens);
}
由于Pull请求在几天前合并,下一个版本应该解决这个问题。