diff --git a/app/Service/SmsService.php b/app/Service/SmsService.php index 873c16d..4a70755 100644 --- a/app/Service/SmsService.php +++ b/app/Service/SmsService.php @@ -44,7 +44,7 @@ class SmsService $this->client = new SmsClient($cred, 'ap-guangzhou', $clientProfile); } - public function send($templateId, $templateParamSet, $phoneNumberSet, $signName = '易游天下') + public function send($templateId, $templateParamSet, $phoneNumberSet, $signName = '') { //if (!config('sms.debug') || config('sms.debug') == 'yes') { // Log::debug([$templateId, $templateParamSet, $phoneNumberSet, $signName]); diff --git a/config/sms.php b/config/sms.php index c1fc50d..4eaab59 100644 --- a/config/sms.php +++ b/config/sms.php @@ -8,7 +8,7 @@ return [ 'sms_sdk_app_id'=> env('SMS_SDK_APP_ID'), 'secret_id' => env('SECRET_ID'), 'secret_key' => env('SECRET_KEY'), - 'sign_name' => '易游天下', + 'sign_name' => env('SIGN_NAME','易游天下'), 'templates' => [ 'bidding' => '1120251', //{竞标人的公司名称}]参与了您发起的竞标{编号},详情请登录{系统名称}查看。 'demand' => '1120254', //恭喜您中标啦!竞标[{编号}]已成功中标!详情请登录{系统名称}查看。