master
elf 4 months ago
parent 10753da02c
commit c9c2ae40b8

@ -424,7 +424,7 @@ class GameSourceService {
'timeout' => 30.0, 'timeout' => 30.0,
]); ]);
try { try {
$response = $client->post('/upload', [ $response = $client->post('/upload/upload', [
'verify' => false, 'verify' => false,
'form_params' => [ 'form_params' => [
'file' => $localFilePath, 'file' => $localFilePath,
@ -446,6 +446,9 @@ class GameSourceService {
'message' => '请求异常: ' . $e->getMessage(), 'message' => '请求异常: ' . $e->getMessage(),
]; ];
} }
if ($result['code'] == '0000') {
$result['status'] = true;
}
return $result; return $result;
} }

@ -3,7 +3,7 @@ namespace Base\Tool;
use Base\Tool\StorageClient; use Base\Tool\StorageClient;
use Exception; use Exception;
use Qcloud\Cos\Client as BaseCosClient; use \Qcloud\Cos\Client as BaseCosClient;
/** /**
* 腾讯云OBS * 腾讯云OBS

Loading…
Cancel
Save