1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-05 00:11:30 +08:00

update app/Http/Admin/Controllers/UploadController.php.

去除重复的signatureAction方法
This commit is contained in:
koogua 2020-11-27 10:29:20 +08:00 committed by Gitee
parent befaccd085
commit c22c2690d6

View File

@ -91,22 +91,4 @@ class UploadController extends Controller
return $this->jsonSuccess($data);
}
/**
* @Get("/sign", name="admin.upload.sign")
*/
public function signatureAction()
{
$service = new StorageService();
$token = $service->getFederationToken();
$data = [
'credentials' => $token->getCredentials(),
'expiredTime' => $token->getExpiredTime(),
'startTime' => time(),
];
return $this->jsonSuccess($data);
}
}