正在显示
1 个修改的文件
包含
4 行增加
和
6 行删除
| @@ -270,13 +270,11 @@ class LoginController extends BaseController | @@ -270,13 +270,11 @@ class LoginController extends BaseController | ||
| 270 | 270 | ||
| 271 | public function ceshi(){ | 271 | public function ceshi(){ |
| 272 | $imageModel = new ImageModel(); | 272 | $imageModel = new ImageModel(); |
| 273 | - $lists = $imageModel->lists($this->map,$this->page,$this->row); | ||
| 274 | - if(!empty($lists) && !empty($lists['list'])){ | 273 | + $lists = $imageModel->list($this->map); |
| 275 | foreach ($lists['list'] as $k => $v){ | 274 | foreach ($lists['list'] as $k => $v){ |
| 276 | - $v['image_link'] = getImageUrl($v['hash']); | ||
| 277 | - $lists['list'][$k] = $v; | 275 | + $v['path'] = 'upload/'.$v['path']; |
| 276 | + $imageModel->edit(['path'=>$v['path']],['id'=>$v['id']]); | ||
| 278 | } | 277 | } |
| 279 | - } | ||
| 280 | - $this->response('success',Code::SUCCESS,$lists); | 278 | + $this->response('success'); |
| 281 | } | 279 | } |
| 282 | } | 280 | } |
-
请 注册 或 登录 后发表评论