chenhao 4 роки тому
батько
коміт
5c55a7a86a

+ 7 - 1
application/common/model/MeetingModel.php

@@ -45,7 +45,13 @@ class MeetingModel extends Model
     }
     public function getImagesAttr($value)
     {
-        return explode(',',$value);
+        $data = explode(',',$value);
+
+        foreach ($data as $k=>$v) {
+            $data[$k] = config('site.httpurl').$data[$k];
+        }
+
+        return $data;
     }
     public function getContentAttr($value)
     {

+ 7 - 1
application/common/model/OfficeModel.php

@@ -45,7 +45,13 @@ class OfficeModel extends Model
     }
     public function getImagesAttr($value)
     {
-        return explode(',',$value);
+        $data = explode(',',$value);
+
+        foreach ($data as $k=>$v) {
+            $data[$k] = config('site.httpurl').$data[$k];
+        }
+
+        return $data;
     }
     public function getContentAttr($value)
     {