diff --git a/app/Services/DoctorAuthService.php b/app/Services/DoctorAuthService.php index 78bf191..d1d80e6 100644 --- a/app/Services/DoctorAuthService.php +++ b/app/Services/DoctorAuthService.php @@ -355,6 +355,7 @@ class DoctorAuthService extends BaseService /** * 新增身份认证信息 * @return array + * @throws GuzzleException */ public function addAuthIden(): array { @@ -528,7 +529,6 @@ class DoctorAuthService extends BaseService } } } - } Db::beginTransaction(); diff --git a/config/config.php b/config/config.php index 0faf01c..34807b2 100644 --- a/config/config.php +++ b/config/config.php @@ -58,15 +58,16 @@ return [ ], "alibaba" => [// 阿里 "dysms" => [// 阿里云大鱼短信 - "accessKey" => "LTAI4GGygjsKhyBwvvC3CghV", - "accessKeySecret" => "rcx7lO9kQxG10m8NqNPEfEtT9IS8EI", + "accessKey" => env("OSS_ACCESS_KEY","LTAI4GGygjsKhyBwvvC3CghV"), + "accessKeySecret" => env("DYSMS_ACCESSKEY_SECRET","rcx7lO9kQxG10m8NqNPEfEtT9IS8EI"), ], "oss" => [// 阿里云对象存储 - "accessKey" => "LTAI5tKmFrVCghcxX7yHyGhm", - "accessKeySecret" => "q1aiIZCJJuf92YbKk2cSXnPES4zx26", - "bucket" => "gdxz-hospital", - "endpoint" => "oss-cn-chengdu.aliyuncs.com", - "custom_domain_name" => "https://img.applets.igandanyiyuan.com", + "accessKey" => env("OSS_ACCESS_KEY","LTAI5tKmFrVCghcxX7yHyGhm"), + "accessKeySecret" => env("OSS_ACCESS_KEY_SECRET","q1aiIZCJJuf92YbKk2cSXnPES4zx26"), + "bucket" => env("OSS_BUCKET","gdxz-hospital"), + "endpoint" => env("OSS_ENDPOINT","oss-cn-chengdu.aliyuncs.com"), + "custom_domain_name" => env("OSS_CUSTOM_DOMAIN_NAME","https://img.applets.igandanyiyuan.com"), + "oss_env" => env("OSS_ENV","applet-dev"), ], ], 'verify_dun' =>[ // 网易易盾 diff --git a/hospital-deploy.sh b/hospital-deploy.sh index 8dbd334..ea00d92 100644 --- a/hospital-deploy.sh +++ b/hospital-deploy.sh @@ -79,6 +79,18 @@ LOGISTICS_KEY=Mpjjgebe8764 LOGISTICS_CUSTOMER=EA3A55C09C524BDB72AE31231721B20F LOGISTICS_APP_URL=https://poll.kuaidi100.com/poll/query.do LOGISTICS_SALT=gdxz2023.d + +# [阿里云OSS] +OSS_ACCESS_KEY=LTAI5tKmFrVCghcxX7yHyGhm +OSS_ACCESS_KEY_SECRET=q1aiIZCJJuf92YbKk2cSXnPES4zx26 +OSS_BUCKET=gdxz-hospital +OSS_ENDPOINT=oss-cn-chengdu.aliyuncs.com +OSS_CUSTOM_DOMAIN_NAME=https://img.applets.igandanyiyuan.com +OSS_ENV=applet-dev + +# [阿里云短信] +DYSMS_ACCESSKEY=LTAI4GGygjsKhyBwvvC3CghV +DYSMS_ACCESSKEY_SECRET=rcx7lO9kQxG10m8NqNPEfEtT9IS8EI ">.env #nginx_upstrame="/Users/wucongxing/Desktop/test/hospital-upstream.conf"