|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|