We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63be2a8 commit fdacc22Copy full SHA for fdacc22
laravel/app/Http/Repository/BusRepository.php
@@ -415,8 +415,12 @@ public function cronTaskTable()
415
'LineGuid' => $task['LineGuid'],
416
'LineInfo' => $task['LineInfo'],
417
];
418
- $data = $this->getLineData2('APTSLine.aspx', $post)['line'];
419
- $content = json_encode($data, JSON_UNESCAPED_UNICODE);
+ $result = $this->getLineData2('APTSLine.aspx', $post);
+ if (!isset($result['line'])) {
420
+ continue;
421
+ }
422
+
423
+ $content = json_encode($result['line'], JSON_UNESCAPED_UNICODE);
424
if (!empty($content) && strlen($content) > 20) {
425
// 入库操作 1 ----- 木渎
426
$cron = ['line_info' => $post['LineInfo'], 'content' => $content];
0 commit comments