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:
parent
befaccd085
commit
c22c2690d6
@ -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