diff --git a/Application/Admin/Controller/AutoPackController.class.php b/Application/Admin/Controller/AutoPackController.class.php index 69c4a53c4..c883bcd6a 100644 --- a/Application/Admin/Controller/AutoPackController.class.php +++ b/Application/Admin/Controller/AutoPackController.class.php @@ -366,7 +366,7 @@ class AutoPackController extends Think $new_name = "game_package" . $value['game_id'] . "-" . $value['promote_id'] . $str_ver; $to = "./Uploads/" . $file_name . "/" . $new_name; $localPath = ROOTTT . ltrim($to, './'); - copy(get_game_source_file_url($value['game_id']), ROOTTT . ltrim($to, './')); + copy(get_game_source_file_url($value['game_id']), $localPath); $zip_res = $zip -> open(ROOTTT . ltrim($to, './'), \ZipArchive::CREATE); if ($zip_res == true) { #打包数据