正在显示
1 个修改的文件
包含
17 行增加
和
15 行删除
| @@ -131,27 +131,29 @@ class LoginController extends BaseController | @@ -131,27 +131,29 @@ 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 | if($image_info !== false){ | 136 | if($image_info !== false){ |
| 135 | $data['html'] = str_replace( | 137 | $data['html'] = str_replace( |
| 136 | $hash, | 138 | $hash, |
| 137 | basename($image_info['path']), | 139 | basename($image_info['path']), |
| 138 | $v['html'] | 140 | $v['html'] |
| 139 | ); | 141 | ); |
| 140 | - $data['head_html'] = str_replace( | ||
| 141 | - $hash, | ||
| 142 | - basename($image_info['path']), | ||
| 143 | - $v['head_html'] | ||
| 144 | - ); | ||
| 145 | - $data['main_html'] = str_replace( | ||
| 146 | - $hash, | ||
| 147 | - basename($image_info['path']), | ||
| 148 | - $v['main_html'] | ||
| 149 | - ); | ||
| 150 | - $data['footer_html'] = str_replace( | ||
| 151 | - $hash, | ||
| 152 | - basename($image_info['path']), | ||
| 153 | - $v['footer_html'] | ||
| 154 | - ); | 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 | +// ); | ||
| 155 | } | 157 | } |
| 156 | } | 158 | } |
| 157 | } | 159 | } |
-
请 注册 或 登录 后发表评论