合并分支 'akun' 到 'master'
Akun 查看合并请求 !2751
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -85,7 +85,7 @@ class HyStockData extends Command | @@ -85,7 +85,7 @@ class HyStockData extends Command | ||
| 85 | // 解析响应结果 | 85 | // 解析响应结果 |
| 86 | $responseResult = json_decode($response, true); | 86 | $responseResult = json_decode($response, true); |
| 87 | if ($responseResult) { | 87 | if ($responseResult) { |
| 88 | - $data = $responseResult['result'][0]['data']; | 88 | + $data = $responseResult['result'][0]['data'] ?? []; |
| 89 | if ($data) { | 89 | if ($data) { |
| 90 | //获取最近一条 | 90 | //获取最近一条 |
| 91 | $stock = StockData::orderBy('id', 'desc')->first(); | 91 | $stock = StockData::orderBy('id', 'desc')->first(); |
-
请 注册 或 登录 后发表评论