浏览代码

1,列表图片修改

cloud 1 月之前
父节点
当前提交
9fc8203b32
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      application/api/controller/Index.php

+ 3 - 0
application/api/controller/Index.php

@@ -49,6 +49,9 @@ class Index extends Api
             }
         });
         $list = $query->order("id","desc")->paginate(['page'=>$page,'list_rows'=>$limit]);
+        foreach ($list as $k=>$v){
+            $list[$k]['image'] = 'https://' . $this->request->host() .$v['image'];
+        }
         $this->success("ok", $list);
     }