1
0
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:
xiaochong0302 2024-07-05 20:30:32 +08:00
parent 12b1531eaf
commit c2e347e609
3 changed files with 3 additions and 12 deletions

View File

@ -12,10 +12,6 @@ use App\Services\Mailer;
class Test extends Mailer class Test extends Mailer
{ {
/**
* @param string $email
* @return bool|null
*/
public function handle($email) public function handle($email)
{ {
$subject = $this->formatSubject('测试邮件'); $subject = $this->formatSubject('测试邮件');

View File

@ -13,10 +13,6 @@ use App\Services\Verify as VerifyService;
class Verify extends MailerService class Verify extends MailerService
{ {
/**
* @param string $email
* @return bool|null
*/
public function handle($email) public function handle($email)
{ {
$minutes = 5; $minutes = 5;

View File

@ -10,7 +10,6 @@ namespace App\Services;
use Phalcon\Logger\Adapter\File as FileLogger; use Phalcon\Logger\Adapter\File as FileLogger;
use Qcloud\Cos\Client as CosClient; use Qcloud\Cos\Client as CosClient;
use TencentCloud\Common\Credential; use TencentCloud\Common\Credential;
use TencentCloud\Common\Exception\TencentCloudSDKException;
use TencentCloud\Common\Profile\ClientProfile; use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Profile\HttpProfile; use TencentCloud\Common\Profile\HttpProfile;
use TencentCloud\Sts\V20180813\Models\GetFederationTokenRequest; use TencentCloud\Sts\V20180813\Models\GetFederationTokenRequest;
@ -101,7 +100,7 @@ class Storage extends Service
$result = $client->GetFederationToken($request); $result = $client->GetFederationToken($request);
} catch (TencentCloudSDKException $e) { } catch (\Exception $e) {
$this->logger->error('Get Tmp Token Exception' . kg_json_encode([ $this->logger->error('Get Tmp Token Exception' . kg_json_encode([
'code' => $e->getCode(), 'code' => $e->getCode(),
@ -149,7 +148,7 @@ class Storage extends Service
* *
* @param string $key * @param string $key
* @param string $filename * @param string $filename
* @return mixed string|bool * @return string|bool
*/ */
public function putFile($key, $filename) public function putFile($key, $filename)
{ {
@ -265,7 +264,7 @@ class Storage extends Service
/** /**
* 获取文件扩展名 * 获取文件扩展名
* *
* @param $filename * @param string $filename
* @return string * @return string
*/ */
protected function getFileExtension($filename) protected function getFileExtension($filename)