dever 3 years ago
parent
commit
4af965b26f
2 changed files with 3 additions and 0 deletions
  1. 1 0
      app/content/lib/News.php
  2. 2 0
      app/push/lib/Data.php

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

@@ -75,6 +75,7 @@ class News
 
     private function getOne($info)
     {
+        $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']);
         if ($info['author']) {

+ 2 - 0
app/push/lib/Data.php

@@ -126,6 +126,8 @@ class Data
             }
         }
 
+        $info['pic'] = str_replace('http://8.131.66.239/', 'http://www.virtualbeings.cn/', $info['pic']);
+
         $info['small_pic'] = $info['pic'];
 
         if ($info['pdate']) {