|
...
|
...
|
@@ -131,14 +131,14 @@ class LoginController extends BaseController |
|
|
|
foreach ($srcValues as $srcValue) {
|
|
|
|
$hash = basename($srcValue);
|
|
|
|
$image_info = $imageModel->read(['hash'=>$hash]);
|
|
|
|
$path = basename($image_info['path']);
|
|
|
|
if($image_info !== false){
|
|
|
|
$path = basename($image_info['path']);
|
|
|
|
$data['html'] = str_replace(
|
|
|
|
$hash,
|
|
|
|
$path,
|
|
|
|
$v['html']
|
|
|
|
);
|
|
|
|
$templateModel->edit($data,['id'=>$v['id']]);
|
|
|
|
$templateModel->edit(['html'=>$data['html']],['id'=>$v['id']]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|