正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -150,7 +150,9 @@ class ReplaceHtml extends Command | @@ -150,7 +150,9 @@ class ReplaceHtml extends Command | ||
| 150 | }else{ | 150 | }else{ |
| 151 | $condition['html'] = ['like','%'.trim($info['old_html']).'%']; | 151 | $condition['html'] = ['like','%'.trim($info['old_html']).'%']; |
| 152 | } | 152 | } |
| 153 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($condition, true) . PHP_EOL, FILE_APPEND); | ||
| 153 | $bTemplateList = $bTemplateModel->list($condition); | 154 | $bTemplateList = $bTemplateModel->list($condition); |
| 155 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($bTemplateList, true) . PHP_EOL, FILE_APPEND); | ||
| 154 | $saveData = []; | 156 | $saveData = []; |
| 155 | foreach ($bTemplateList as $v){ | 157 | foreach ($bTemplateList as $v){ |
| 156 | $source_id = $v['source'] == 1 ? 0 : $v['source_id']; | 158 | $source_id = $v['source'] == 1 ? 0 : $v['source_id']; |
-
请 注册 或 登录 后发表评论