更新文件上传插件

This commit is contained in:
邹景立 2017-02-22 14:26:40 +08:00
parent 3426dd0895
commit 3d36d991b7

View File

@ -48,7 +48,7 @@ class Plugs extends BasicAdmin {
public function upstate() {
$post = $this->request->post();
// 组装返回数据
$data = array();
$data = [];
$data['uptype'] = $post['uptype'];
$ext = pathinfo($post['filename'], PATHINFO_EXTENSION);
$data['file_url'] = join('/', str_split($post['md5'], 16)) . ".{$ext}";