dever 6 years ago
parent
commit
c1df05d0db
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main/lib/Core.php

+ 3 - 3
main/lib/Core.php

@@ -26,12 +26,12 @@ class Core
     }
 
     # 图片处理
-    protected function pic($data, $type = 't1')
+    public function pic($data, $type = 't1')
     {
         //?imageView2/1/w/100/h/100/q/75
         $config = array
         (
-            'pic_cover', 'pic_cover_169', 'content', 'share_pic'
+            'pic','pic_cover', 'pic_cover_169', 'content', 'share_pic'
         );
 
         foreach ($config as $k => $v) {
@@ -43,7 +43,7 @@ class Core
         return $data;
     }
 
-    protected function replacePic($pic, $type = 't1')
+    public function replacePic($pic, $type = 't1')
     {
         $pic = Dever::pic($pic, $type);