$filename = root_path()."public/qrcode/".time().'.png'; $filename = str_replace("\\",'/',$filename); //反斜杠转化为正斜杠
tp6 引入文件方式:
$filename = root_path()."public/qrcode/".time().'.png';