dever 3 years ago
parent
commit
c6a70df675
1 changed files with 7 additions and 0 deletions
  1. 7 0
      app/content/lib/News.php

+ 7 - 0
app/content/lib/News.php

@@ -75,6 +75,13 @@ class News
 
     private function getOne($info)
     {
+        if ($info['small_pic']) {
+            $info['small_pic'] = str_replace('http://8.131.66.239/', 'http://www.virtualbeings.cn/', $info['small_pic']);
+        }
+        if ($info['content_video_pic']) {
+            $info['content_video_pic'] = str_replace('http://8.131.66.239/', 'http://www.virtualbeings.cn/', $info['content_video_pic']);
+        }
+        
         $info['pic'] = str_replace('http://8.131.66.239/', 'http://www.virtualbeings.cn/', $info['pic']);
         $info['link'] = Dever::url('main/article?type='.$info['type'].'&id=' . $info['id']);
         $info['pdate_string'] = date('M d, Y', $info['pdate']);