function multiupload()
 {
     //批量上传图片
     $savePath = $this->savePathVideo;
     $path = $this->pathVideo;
     $result = qkhl_uploader($savePath);
     if ($result['result']) {
         unset($_POST['id']);
         $_POST['video'] = $path . "/" . $result['result']['filename'];
         $_POST['video_name'] = $result['result']['oldfilename'];
         $_POST['create_time'] = time();
         if ($this->room->create()) {
             if ($this->room->add()) {
                 die(json_encode($result));
             }
         } else {
             die(json_encode($this->room->getError()));
         }
     } else {
         die(json_encode($result));
     }
 }
 function multiupload()
 {
     //批量上传图片
     $savePath = $this->savePath;
     $path = $this->path;
     $result = qkhl_uploader($savePath);
     if ($result['result']) {
         $Lunbo = D("Lunbo");
         unset($_POST['id']);
         $_POST['lunbo_face'] = $path . "/" . $result['result']['filename'];
         $_POST['oldfilename'] = $result['result']['oldfilename'];
         $_POST['create_time'] = time();
         if ($Lunbo->create()) {
             if ($Lunbo->add()) {
                 die(json_encode($result));
             }
         } else {
             die(json_encode($Lunbo->getError()));
         }
     } else {
         die(json_encode($result));
     }
 }
 function singleupload()
 {
     //单个文件上传
     $savePath = $this->savePath;
     $path = $this->path;
     $result = qkhl_uploader($savePath);
     die(json_encode($result));
 }
 function singleupload()
 {
     //单个文件上传
     $savePath = $this->savePath;
     $path = $this->path;
     $result = qkhl_uploader($savePath);
     $filename = $result['result']['filename'];
     $filePath = $this->savePath . "/" . $filename;
     //图片处理
     $image = new \Think\Image();
     $image->open($filePath);
     $image->thumb(450, 450, \Think\Image::IMAGE_THUMB_FIXED)->save($filePath);
     die(json_encode($result));
 }