|
...
|
...
|
@@ -37,9 +37,9 @@ class TestController extends BaseController |
|
|
|
preg_match_all($pattern, $test, $matches);
|
|
|
|
$updatedSources = $this->saveBase64Images($matches[1]);
|
|
|
|
foreach($updatedSources as $k => $v){
|
|
|
|
$outputString = str_replace($v, $k, $outputString);
|
|
|
|
$test = str_replace($v, $k, $test);
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$outputString);
|
|
|
|
$this->response('success',Code::SUCCESS,$test);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function saveBase64Images($imageSources) {
|
...
|
...
|
|