|
...
|
...
|
@@ -131,33 +131,18 @@ class LoginController extends BaseController |
|
|
|
foreach ($srcValues as $srcValue) {
|
|
|
|
$hash = basename($srcValue);
|
|
|
|
$image_info = $imageModel->read(['hash'=>$hash]);
|
|
|
|
var_dump(basename($image_info['path']));
|
|
|
|
die();
|
|
|
|
$path = basename($image_info['path']);
|
|
|
|
if($image_info !== false){
|
|
|
|
$data['html'] = str_replace(
|
|
|
|
$hash,
|
|
|
|
basename($image_info['path']),
|
|
|
|
$path,
|
|
|
|
$v['html']
|
|
|
|
);
|
|
|
|
// $data['head_html'] = str_replace(
|
|
|
|
// $hash,
|
|
|
|
// basename($image_info['path']),
|
|
|
|
// $v['head_html']
|
|
|
|
// );
|
|
|
|
// $data['main_html'] = str_replace(
|
|
|
|
// $hash,
|
|
|
|
// basename($image_info['path']),
|
|
|
|
// $v['main_html']
|
|
|
|
// );
|
|
|
|
// $data['footer_html'] = str_replace(
|
|
|
|
// $hash,
|
|
|
|
// basename($image_info['path']),
|
|
|
|
// $v['footer_html']
|
|
|
|
// );
|
|
|
|
var_dump($data['html']);
|
|
|
|
$templateModel->edit($data,['id'=>$v['id']]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$templateModel->edit($data,['id'=>$v['id']]);
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
...
|
...
|
|