正在显示
1 个修改的文件
包含
4 行增加
和
19 行删除
| @@ -131,33 +131,18 @@ class LoginController extends BaseController | @@ -131,33 +131,18 @@ class LoginController extends BaseController | ||
| 131 | foreach ($srcValues as $srcValue) { | 131 | foreach ($srcValues as $srcValue) { |
| 132 | $hash = basename($srcValue); | 132 | $hash = basename($srcValue); |
| 133 | $image_info = $imageModel->read(['hash'=>$hash]); | 133 | $image_info = $imageModel->read(['hash'=>$hash]); |
| 134 | - var_dump(basename($image_info['path'])); | ||
| 135 | - die(); | 134 | + $path = basename($image_info['path']); |
| 136 | if($image_info !== false){ | 135 | if($image_info !== false){ |
| 137 | $data['html'] = str_replace( | 136 | $data['html'] = str_replace( |
| 138 | $hash, | 137 | $hash, |
| 139 | - basename($image_info['path']), | 138 | + $path, |
| 140 | $v['html'] | 139 | $v['html'] |
| 141 | ); | 140 | ); |
| 142 | -// $data['head_html'] = str_replace( | ||
| 143 | -// $hash, | ||
| 144 | -// basename($image_info['path']), | ||
| 145 | -// $v['head_html'] | ||
| 146 | -// ); | ||
| 147 | -// $data['main_html'] = str_replace( | ||
| 148 | -// $hash, | ||
| 149 | -// basename($image_info['path']), | ||
| 150 | -// $v['main_html'] | ||
| 151 | -// ); | ||
| 152 | -// $data['footer_html'] = str_replace( | ||
| 153 | -// $hash, | ||
| 154 | -// basename($image_info['path']), | ||
| 155 | -// $v['footer_html'] | ||
| 156 | -// ); | 141 | + var_dump($data['html']); |
| 142 | + $templateModel->edit($data,['id'=>$v['id']]); | ||
| 157 | } | 143 | } |
| 158 | } | 144 | } |
| 159 | } | 145 | } |
| 160 | - $templateModel->edit($data,['id'=>$v['id']]); | ||
| 161 | } | 146 | } |
| 162 | return 1; | 147 | return 1; |
| 163 | } | 148 | } |
-
请 注册 或 登录 后发表评论