소스 검색

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);
     }