作者 lyh

hx

@@ -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) {