目前,我通过以下方式指定多个 pod:
my $q = $wa->query(
'input' => $input,
'format' => 'plaintext',
'includepodid' => ['Input', 'Result', 'WeatherForecast:WeatherData', 'ForecastCharts:WeatherData'],
'reinterpret' => 'true',
);
然而,它随后返回空结果—— pod 的数量是未定义的,其他字段也是如此。仅设置一个 pod id:
'includepodid' => 'Result'
确实有效,因此代码总体上是正确的。使用[ 'Result' ]
会产生相同的错误行为。