正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -131,14 +131,14 @@ class LoginController extends BaseController | @@ -131,14 +131,14 @@ 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 | - $path = basename($image_info['path']); | ||
| 135 | if($image_info !== false){ | 134 | if($image_info !== false){ |
| 135 | + $path = basename($image_info['path']); | ||
| 136 | $data['html'] = str_replace( | 136 | $data['html'] = str_replace( |
| 137 | $hash, | 137 | $hash, |
| 138 | $path, | 138 | $path, |
| 139 | $v['html'] | 139 | $v['html'] |
| 140 | ); | 140 | ); |
| 141 | - $templateModel->edit($data,['id'=>$v['id']]); | 141 | + $templateModel->edit(['html'=>$data['html']],['id'=>$v['id']]); |
| 142 | } | 142 | } |
| 143 | } | 143 | } |
| 144 | } | 144 | } |
-
请 注册 或 登录 后发表评论