生成小程序二維碼失敗,getRoutineQrcodePath()報錯:unpublished。
報錯位置
if ($res->getSize() < 100) return 'unpublished';
輸出$res->getSize()值為:73
輸出$res數(shù)據為:
GuzzleHttp\Psr7\Stream Object
(
[stream:GuzzleHttp\Psr7\Stream:private] => Resource id #371
[size:GuzzleHttp\Psr7\Stream:private] =>
[seekable:GuzzleHttp\Psr7\Stream:private] => 1
[readable:GuzzleHttp\Psr7\Stream:private] => 1
[writable:GuzzleHttp\Psr7\Stream:private] => 1
[uri:GuzzleHttp\Psr7\Stream:private] => php://temp
[customMetadata:GuzzleHttp\Psr7\Stream:private] => Array
(
)
)
小程序appId和AppSecret已配置,使用的是已經發(fā)布小程序appId和AppSecret