yangsai@163.com 6 months ago
parent 043818eafa
commit b84b7da911
  1. 2
      application/controllers/Api/Sysset.php

@ -99,7 +99,7 @@ class Api_SyssetController extends Ctrl_Api{
$excel = iconv('utf-8','gbk',$excel); $excel = iconv('utf-8','gbk',$excel);
$fileName = 'EXCEL导出鼠信息'.time(). '.csv'; $fileName = 'EXCEL导出鼠信息'.time(). '.csv';
file_put_contents($path.$fileName, $excel); file_put_contents($path.$fileName, $excel);
$data=Yaf_Registry::get("config")->web->url->img."/public/upload/excel/".$fileName; $data['url']=Yaf_Registry::get("config")->web->url->img."/public/upload/excel/".$fileName;
Tool_Fnc::apiMsg('获取成功', '200',$data); Tool_Fnc::apiMsg('获取成功', '200',$data);
} }

Loading…
Cancel
Save