mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
更新文件上传插件
This commit is contained in:
parent
3426dd0895
commit
3d36d991b7
@ -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}";
|
||||
|
Loading…
x
Reference in New Issue
Block a user