diff --git a/app/common/service/xlsx/InventoryTransferXlsx.php b/app/common/service/xlsx/InventoryTransferXlsx.php index 898422a31..592e4fb05 100644 --- a/app/common/service/xlsx/InventoryTransferXlsx.php +++ b/app/common/service/xlsx/InventoryTransferXlsx.php @@ -103,21 +103,5 @@ class InventoryTransferXlsx } $writer->save($file_path); return getenv('APP_URL') . $url; - - // $writer = new Xlsx($spreadsheet); - // $dir = public_path() . '/export/' . date('Y-m'); - // if (!file_exists($dir)) { - // // 尝试创建目录 - // if (!mkdir($dir)) { - // throw new BusinessException('创建目录失败:/export/' . date('Y-m')); - // } - // } - // $url = $dir . '/' . "调拨订单 " . date('YmdHi') . '.xlsx'; - // $file_path = public_path() . $url; - // if (!is_dir(dirname($file_path))) { - // mkdir(dirname($file_path), 0777, true); - // } - // $writer->save($file_path); - // return getenv('APP_URL') . $url; } }