|
...
|
...
|
@@ -271,9 +271,11 @@ class LoginController extends BaseController |
|
|
|
$templateModel = new TemplateModule();
|
|
|
|
$list = $templateModel->list();
|
|
|
|
foreach ($list as $k => $v){
|
|
|
|
$html = $this->updateHtml();
|
|
|
|
$html = $this->updateHtml($v['html']);
|
|
|
|
if(!empty($html)){
|
|
|
|
$templateModel->edit(['html'=>$html],['id'=>$v['id']]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -286,8 +288,9 @@ class LoginController extends BaseController |
|
|
|
return $html;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function updateHtml(){
|
|
|
|
$html = $this->re($v['html'],'admin.item.globalso.site','ecdn6.globalso.com/');
|
|
|
|
public function updateHtml($html){
|
|
|
|
$html = $this->re($html,'admin.item.globalso.site','admin.item.globalso.site/');
|
|
|
|
$html = $this->re($html,'//','/');
|
|
|
|
return $html;
|
|
|
|
// $html = $this->re($v['html'],'https://develop.globalso.com/b/image/','https://ecdn6.globalso.com/public/template/');
|
|
|
|
}
|
...
|
...
|
|