mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
整理doc参数
This commit is contained in:
parent
12b1531eaf
commit
c2e347e609
@ -12,10 +12,6 @@ use App\Services\Mailer;
|
||||
class Test extends Mailer
|
||||
{
|
||||
|
||||
/**
|
||||
* @param string $email
|
||||
* @return bool|null
|
||||
*/
|
||||
public function handle($email)
|
||||
{
|
||||
$subject = $this->formatSubject('测试邮件');
|
||||
|
@ -13,10 +13,6 @@ use App\Services\Verify as VerifyService;
|
||||
class Verify extends MailerService
|
||||
{
|
||||
|
||||
/**
|
||||
* @param string $email
|
||||
* @return bool|null
|
||||
*/
|
||||
public function handle($email)
|
||||
{
|
||||
$minutes = 5;
|
||||
|
@ -10,7 +10,6 @@ namespace App\Services;
|
||||
use Phalcon\Logger\Adapter\File as FileLogger;
|
||||
use Qcloud\Cos\Client as CosClient;
|
||||
use TencentCloud\Common\Credential;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
use TencentCloud\Sts\V20180813\Models\GetFederationTokenRequest;
|
||||
@ -101,7 +100,7 @@ class Storage extends Service
|
||||
|
||||
$result = $client->GetFederationToken($request);
|
||||
|
||||
} catch (TencentCloudSDKException $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
$this->logger->error('Get Tmp Token Exception' . kg_json_encode([
|
||||
'code' => $e->getCode(),
|
||||
@ -149,7 +148,7 @@ class Storage extends Service
|
||||
*
|
||||
* @param string $key
|
||||
* @param string $filename
|
||||
* @return mixed string|bool
|
||||
* @return string|bool
|
||||
*/
|
||||
public function putFile($key, $filename)
|
||||
{
|
||||
@ -265,7 +264,7 @@ class Storage extends Service
|
||||
/**
|
||||
* 获取文件扩展名
|
||||
*
|
||||
* @param $filename
|
||||
* @param string $filename
|
||||
* @return string
|
||||
*/
|
||||
protected function getFileExtension($filename)
|
||||
|
Loading…
x
Reference in New Issue
Block a user