正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
| @@ -32,7 +32,7 @@ class ImageController extends Controller | @@ -32,7 +32,7 @@ class ImageController extends Controller | ||
| 32 | 32 | ||
| 33 | public $row = 20; | 33 | public $row = 20; |
| 34 | 34 | ||
| 35 | - public $map; | 35 | + public $map = []; |
| 36 | 36 | ||
| 37 | 37 | ||
| 38 | public $upload_location = 0;//是否同步到cos | 38 | public $upload_location = 0;//是否同步到cos |
| @@ -52,6 +52,7 @@ class ImageController extends Controller | @@ -52,6 +52,7 @@ class ImageController extends Controller | ||
| 52 | $this->param = $this->request->all(); | 52 | $this->param = $this->request->all(); |
| 53 | $this->config = config('filesystems.disks.upload'); | 53 | $this->config = config('filesystems.disks.upload'); |
| 54 | $this->uploads = config('upload.default_image'); | 54 | $this->uploads = config('upload.default_image'); |
| 55 | + $this->get_param(); | ||
| 55 | } | 56 | } |
| 56 | 57 | ||
| 57 | /** | 58 | /** |
| @@ -342,8 +343,6 @@ class ImageController extends Controller | @@ -342,8 +343,6 @@ class ImageController extends Controller | ||
| 342 | public function getImageList(){ | 343 | public function getImageList(){ |
| 343 | $imageModel = new ImageModel(); | 344 | $imageModel = new ImageModel(); |
| 344 | $lists = $imageModel->lists($this->map,$this->page,$this->row); | 345 | $lists = $imageModel->lists($this->map,$this->page,$this->row); |
| 345 | - var_dump(2222); | ||
| 346 | - die(); | ||
| 347 | if(!empty($lists) && !empty($lists['list'])){ | 346 | if(!empty($lists) && !empty($lists['list'])){ |
| 348 | foreach ($lists['list'] as $k => $v){ | 347 | foreach ($lists['list'] as $k => $v){ |
| 349 | $v['image_link'] = getImageUrl($v['hash']); | 348 | $v['image_link'] = getImageUrl($v['hash']); |
-
请 注册 或 登录 后发表评论