|
@@ -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']);
|