From c2e347e609c4da53155d5d6911e6b7af0de40cdc Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Fri, 5 Jul 2024 20:30:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86doc=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Logic/Notice/External/Mail/Test.php | 4 ---- app/Services/Logic/Notice/External/Mail/Verify.php | 4 ---- app/Services/Storage.php | 7 +++---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/app/Services/Logic/Notice/External/Mail/Test.php b/app/Services/Logic/Notice/External/Mail/Test.php index 08b57e48..e8710094 100644 --- a/app/Services/Logic/Notice/External/Mail/Test.php +++ b/app/Services/Logic/Notice/External/Mail/Test.php @@ -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('测试邮件'); diff --git a/app/Services/Logic/Notice/External/Mail/Verify.php b/app/Services/Logic/Notice/External/Mail/Verify.php index 0fabb908..c0fe5132 100644 --- a/app/Services/Logic/Notice/External/Mail/Verify.php +++ b/app/Services/Logic/Notice/External/Mail/Verify.php @@ -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; diff --git a/app/Services/Storage.php b/app/Services/Storage.php index 552da79a..71e32120 100644 --- a/app/Services/Storage.php +++ b/app/Services/Storage.php @@ -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)