diff --git a/Application/Base/Service/GameSourceService.class.php b/Application/Base/Service/GameSourceService.class.php index 779cdd395..b8b3766de 100644 --- a/Application/Base/Service/GameSourceService.class.php +++ b/Application/Base/Service/GameSourceService.class.php @@ -424,7 +424,7 @@ class GameSourceService { 'timeout' => 30.0, ]); try { - $response = $client->post('/upload', [ + $response = $client->post('/upload/upload', [ 'verify' => false, 'form_params' => [ 'file' => $localFilePath, @@ -446,6 +446,9 @@ class GameSourceService { 'message' => '请求异常: ' . $e->getMessage(), ]; } + if ($result['code'] == '0000') { + $result['status'] = true; + } return $result; } diff --git a/Application/Base/Tool/CosClient.class.php b/Application/Base/Tool/CosClient.class.php index a729b5780..8efbe3484 100644 --- a/Application/Base/Tool/CosClient.class.php +++ b/Application/Base/Tool/CosClient.class.php @@ -3,7 +3,7 @@ namespace Base\Tool; use Base\Tool\StorageClient; use Exception; -use Qcloud\Cos\Client as BaseCosClient; +use \Qcloud\Cos\Client as BaseCosClient; /** * 腾讯云OBS