修复 无法获取价格的问题
This commit is contained in:
parent
cfda7c9be7
commit
b235fade37
@ -48,8 +48,8 @@ public function handle()
|
|||||||
$response_json = $response->json();
|
$response_json = $response->json();
|
||||||
|
|
||||||
// 检测是否有价格
|
// 检测是否有价格
|
||||||
if (isset($response_json['price'])) {
|
if (isset($response_json['data']['price'])) {
|
||||||
$host->price = $response_json['price'];
|
$host->price = $response_json['data']['price'];
|
||||||
} else {
|
} else {
|
||||||
$host->status = 'error';
|
$host->status = 'error';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user