From 1ec7de4ec46815b62437b211ff59d6ff6b485f6f Mon Sep 17 00:00:00 2001 From: huang Date: Sat, 31 Jan 2026 12:01:37 +0800 Subject: [PATCH] =?UTF-8?q?chore(bootstrap):=20=E6=9B=B4=E6=96=B0=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E6=B3=A8=E5=85=A5=E5=92=8C=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - bootstrap/services.go - OrderService 初始化新增依赖注入 - 添加 ShopSeriesAllocationStore、IotCardStore、DeviceStore - docker-compose.prod.yml - 对象存储 S3 端点改为 HTTPS(安全性提升) - 同时更新 API 和 Worker 服务配置 Co-authored-by: Sisyphus --- docker-compose.prod.yml | 4 ++-- internal/bootstrap/services.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 20b4eb3..7aff5c5 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -53,7 +53,7 @@ services: - JUNHONG_LOGGING_DEVELOPMENT=false # 对象存储配置 - JUNHONG_STORAGE_PROVIDER=s3 - - JUNHONG_STORAGE_S3_ENDPOINT=http://obs-helf.cucloud.cn + - JUNHONG_STORAGE_S3_ENDPOINT=https://obs-helf.cucloud.cn - JUNHONG_STORAGE_S3_REGION=cn-langfang-2 - JUNHONG_STORAGE_S3_BUCKET=cmp - JUNHONG_STORAGE_S3_ACCESS_KEY_ID=598F558CF6FF46E79D1CFC607852378C9523 @@ -125,7 +125,7 @@ services: - JUNHONG_LOGGING_DEVELOPMENT=false # 对象存储配置 - JUNHONG_STORAGE_PROVIDER=s3 - - JUNHONG_STORAGE_S3_ENDPOINT=http://obs-helf.cucloud.cn + - JUNHONG_STORAGE_S3_ENDPOINT=https://obs-helf.cucloud.cn - JUNHONG_STORAGE_S3_REGION=cn-langfang-2 - JUNHONG_STORAGE_S3_BUCKET=cmp - JUNHONG_STORAGE_S3_ACCESS_KEY_ID=598F558CF6FF46E79D1CFC607852378C9523 diff --git a/internal/bootstrap/services.go b/internal/bootstrap/services.go index 1c4ca05..6a4e9c1 100644 --- a/internal/bootstrap/services.go +++ b/internal/bootstrap/services.go @@ -119,6 +119,6 @@ func initServices(s *stores, deps *Dependencies) *services { ShopPackageBatchPricing: shopPackageBatchPricingSvc.New(deps.DB, s.ShopPackageAllocation, s.ShopPackageAllocationPriceHistory, s.Shop), CommissionStats: commissionStatsSvc.New(s.ShopSeriesCommissionStats), PurchaseValidation: purchaseValidation, - Order: orderSvc.New(deps.DB, s.Order, s.OrderItem, s.Wallet, purchaseValidation, s.ShopSeriesAllocationConfig, deps.WechatPayment, deps.QueueClient, deps.Logger), + Order: orderSvc.New(deps.DB, s.Order, s.OrderItem, s.Wallet, purchaseValidation, s.ShopSeriesAllocationConfig, s.ShopSeriesAllocation, s.IotCard, s.Device, deps.WechatPayment, deps.QueueClient, deps.Logger), } }