|
...
|
...
|
@@ -296,21 +296,4 @@ class LoginController extends BaseController |
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function ceshi(){
|
|
|
|
$templateModel = new TemplateModule();
|
|
|
|
$list = $templateModel->list();
|
|
|
|
$imageModel = new ImageModel();
|
|
|
|
foreach ($list as $k=>$v){
|
|
|
|
if (strpos($v['image'], '.') !== false) {
|
|
|
|
$v['image'] = '/upload'.$v['image'];
|
|
|
|
}else{
|
|
|
|
$info = $imageModel->read(['hash'=>$v['image']]);
|
|
|
|
if($info !== false){
|
|
|
|
$v['image'] = $info['path'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$templateModel->edit(['image'=>$v['image']],['id'=>$v['id']]);
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|