时间:2021-07-01 10:21:17 帮助过:77人阅读
1));die;}$file = time().'.'.$ext;$data = preg_replace("/data:image\/(.*);base64,/","",$data);if (file_put_contents($file,base64_decode($data))===false) {echo json_encode(array("error"=>1));}else{echo json_encode(array("error"=>0));}