diff --git a/niucloud/app/service/core/notice/CoreNiuSmsService.php b/niucloud/app/service/core/notice/CoreNiuSmsService.php index c9172d5bd..f530f5ece 100644 --- a/niucloud/app/service/core/notice/CoreNiuSmsService.php +++ b/niucloud/app/service/core/notice/CoreNiuSmsService.php @@ -50,7 +50,7 @@ class CoreNiuSmsService extends BaseAdminService public function __construct() { parent::__construct(); - $niushop_url_prefix = env('NIU_SHOP_PREFIX', 'https://www.niushop.com/openapi'); + $niushop_url_prefix = env('NIU_SHOP_PREFIX', 'https://api.niucloud.com/openapi'); if (empty($niushop_url_prefix)) { throw new \Exception('URL_NOT_FOUND'); } else { diff --git a/niucloud/app/service/core/upload/CoreFileService.php b/niucloud/app/service/core/upload/CoreFileService.php index eeaa3a289..6df25c739 100644 --- a/niucloud/app/service/core/upload/CoreFileService.php +++ b/niucloud/app/service/core/upload/CoreFileService.php @@ -76,18 +76,11 @@ class CoreFileService extends BaseCoreService /** * 实例化上传引擎 * @param int $site_id - * @param string $storage_type + * @param string $storage_type `非空则是强制使用某种存储方式 为空则是走后台设置` * @return UploadLoader * @throws Exception */ public function driver(int $site_id, string $storage_type = ''){ - - //是租户且设置的为默认 则按照超级管理员的默认来使用 - $tenant_is_default = ($site_id != 0 && $storage_type == StorageDict::LOCAL); - if ($tenant_is_default){ - $site_id = 0; - $storage_type = ''; - } if(empty($storage_type)){ $core_storage_service = new CoreStorageService(); $storage_config = $core_storage_service->getDefaultStorage($site_id);