|
|
@ -397,12 +397,10 @@ class AutoPackController extends Think
|
|
|
|
$new_to = ROOTTT . "Uploads/" . $file_name . "/" . $newname;
|
|
|
|
$new_to = ROOTTT . "Uploads/" . $file_name . "/" . $newname;
|
|
|
|
$updata['savename'] = $newname;
|
|
|
|
$updata['savename'] = $newname;
|
|
|
|
$updata['path'] = $new_to;
|
|
|
|
$updata['path'] = $new_to;
|
|
|
|
$result = $this -> upload_game_pak_oss($updata);
|
|
|
|
$this -> upload_game_pak_oss($updata);
|
|
|
|
|
|
|
|
|
|
|
|
if ($result) {
|
|
|
|
if (file_exists($new_to)) {
|
|
|
|
if (file_exists($new_to)) {
|
|
|
|
@unlink($new_to);
|
|
|
|
@unlink($new_to);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} elseif (get_tool_status("qiniu_storage") == 1) {
|
|
|
|
} elseif (get_tool_status("qiniu_storage") == 1) {
|
|
|
|
|
|
|
|
|
|
|
|