|
...
|
...
|
@@ -270,13 +270,11 @@ class LoginController extends BaseController |
|
|
|
|
|
|
|
public function ceshi(){
|
|
|
|
$imageModel = new ImageModel();
|
|
|
|
$lists = $imageModel->lists($this->map,$this->page,$this->row);
|
|
|
|
if(!empty($lists) && !empty($lists['list'])){
|
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
$v['image_link'] = getImageUrl($v['hash']);
|
|
|
|
$lists['list'][$k] = $v;
|
|
|
|
}
|
|
|
|
$lists = $imageModel->list($this->map);
|
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
$v['path'] = 'upload/'.$v['path'];
|
|
|
|
$imageModel->edit(['path'=>$v['path']],['id'=>$v['id']]);
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|