From 86d7c90bd9e9d8c1baa6e86babda5dc8634b1853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AA=97=E8=BE=B9=E7=9A=84=E5=B0=8F=E8=B1=86=E8=B1=86?= <4563196@qq.com> Date: Fri, 4 Aug 2023 10:40:28 +0000 Subject: [PATCH] =?UTF-8?q?add=20=E7=81=AB=E5=B1=B1=E7=9F=AD=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 窗边的小豆豆 <4563196@qq.com> --- EasySms/app/Services/ConfigFormatter.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/EasySms/app/Services/ConfigFormatter.php b/EasySms/app/Services/ConfigFormatter.php index bb6c6e07..91986264 100644 --- a/EasySms/app/Services/ConfigFormatter.php +++ b/EasySms/app/Services/ConfigFormatter.php @@ -35,4 +35,15 @@ class ConfigFormatter 'sign_name' => $signName, ]; } + + public function formatVolcengineGatewayConfig(string $signName) + { + return [ + 'access_key_id' =>$this->smsSystemConfig->getKeyId(), + 'access_key_secret' => $this->smsSystemConfig->getKeySecret(), + 'region_id' => 'cn-north-1', + 'sign_name' => $signName, + 'sms_account' => $this->smsSystemConfig->getAppId(), + ]; + } } -- Gitee