chenhao 4 年之前
父節點
當前提交
5c55a7a86a
共有 2 個文件被更改,包括 14 次插入2 次删除
  1. 7 1
      application/common/model/MeetingModel.php
  2. 7 1
      application/common/model/OfficeModel.php

+ 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)
     {