|
@@ -292,11 +292,15 @@ class NewsService implements NewsServiceInterface
|
|
|
unset($articleData['content']);
|
|
|
|
|
|
if ($articleData['imgurl'] == '') {
|
|
|
+
|
|
|
+ $articleData['level'] = '[0]';
|
|
|
|
|
|
$reg = '/<img.*?src=[\"|\']?(.*?)[\"|\']?\s.*?>/i';
|
|
|
preg_match_all($reg, $data['content'], $matches);
|
|
|
if (isset($matches[1][0])) {
|
|
|
$articleData['imgurl'] = $matches[1][0];
|
|
|
+
|
|
|
+ $articleData['level'] = '[3]';
|
|
|
}
|
|
|
}
|
|
|
if ($articleData['keyword'] == '') {
|
|
@@ -435,11 +439,15 @@ class NewsService implements NewsServiceInterface
|
|
|
unset($articleData['pid']);
|
|
|
|
|
|
if ($articleData['imgurl'] == '') {
|
|
|
+
|
|
|
+ $articleData['level'] = '[0]';
|
|
|
|
|
|
$reg = '/<img.*?src=[\"|\']?(.*?)[\"|\']?\s.*?>/i';
|
|
|
preg_match_all($reg, $data['content'], $matches);
|
|
|
if (isset($matches[1][0])) {
|
|
|
$articleData['imgurl'] = $matches[1][0];
|
|
|
+
|
|
|
+ $articleData['level'] = '[3]';
|
|
|
}
|
|
|
}
|
|
|
if ($articleData['keyword'] == '') {
|