|
...
|
...
|
@@ -120,15 +120,15 @@ class LoginController extends BaseController |
|
|
|
public function ceshi(){
|
|
|
|
$templateModel = new TemplateModule();
|
|
|
|
$imageModel = new Image();
|
|
|
|
$list = $templateModel->list([],'id',['hash']);
|
|
|
|
$list = $templateModel->list([],'id',['image']);
|
|
|
|
var_dump($list);
|
|
|
|
die();
|
|
|
|
$data = [];
|
|
|
|
foreach ($list as $v){
|
|
|
|
if(!isset($data[$v['hash']])){
|
|
|
|
$info = $imageModel->read(['hash'=>$v['hash']]);
|
|
|
|
if(!isset($data[$v['image']])){
|
|
|
|
$info = $imageModel->read(['hash'=>$v['image']]);
|
|
|
|
if($info !== false){
|
|
|
|
$data[$v['hash']] = $info['path'];
|
|
|
|
$data[$v['image']] = $info['image'];
|
|
|
|
$param = [
|
|
|
|
'size'=>$info['size'],
|
|
|
|
'path'=>$info['path'],
|
...
|
...
|
|