|
...
|
...
|
@@ -85,7 +85,7 @@ class HyStockData extends Command |
|
|
|
// 解析响应结果
|
|
|
|
$responseResult = json_decode($response, true);
|
|
|
|
if ($responseResult) {
|
|
|
|
$data = $responseResult['result'][0]['data'];
|
|
|
|
$data = $responseResult['result'][0]['data'] ?? [];
|
|
|
|
if ($data) {
|
|
|
|
//获取最近一条
|
|
|
|
$stock = StockData::orderBy('id', 'desc')->first();
|
...
|
...
|
|