mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 20:00:27 +08:00
删除重复的signature方法
This commit is contained in:
parent
6fa30310dd
commit
e03dcb89fa
@ -91,22 +91,4 @@ class UploadController extends Controller
|
|||||||
return $this->jsonSuccess($data);
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user