$_POST['name'], 'path' => $_POST['path'], 'imgid' => $_POST['imgid'], 'file' => $_FILES['file'] ); $UploadM=$this->MODEL('upload'); $return = $UploadM->layUpload($data); if (!empty($_POST['name']) && $return['code'] == 0){ // 后台上传logo后,重新生成缓存 $this->web_config(); } }else{ $return = array( 'code' => 1, 'msg' => '请上传文件', 'data' => array() ); } echo json_encode($return); } } ?>