正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -37,9 +37,9 @@ class TestController extends BaseController | @@ -37,9 +37,9 @@ class TestController extends BaseController | ||
| 37 | preg_match_all($pattern, $test, $matches); | 37 | preg_match_all($pattern, $test, $matches); |
| 38 | $updatedSources = $this->saveBase64Images($matches[1]); | 38 | $updatedSources = $this->saveBase64Images($matches[1]); |
| 39 | foreach($updatedSources as $k => $v){ | 39 | foreach($updatedSources as $k => $v){ |
| 40 | - $outputString = str_replace($v, $k, $outputString); | 40 | + $test = str_replace($v, $k, $test); |
| 41 | } | 41 | } |
| 42 | - $this->response('success',Code::SUCCESS,$outputString); | 42 | + $this->response('success',Code::SUCCESS,$test); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | public function saveBase64Images($imageSources) { | 45 | public function saveBase64Images($imageSources) { |
-
请 注册 或 登录 后发表评论