From e3c34c96e2fdb709d5244c311c93f5e612468e03 Mon Sep 17 00:00:00 2001 From: DEKA_123 <1904876928@qq.com> Date: Tue, 8 Aug 2023 10:05:37 +0800 Subject: [PATCH] =?UTF-8?q?enhance(sync):=E5=90=8C=E6=AD=A5=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E8=B7=AF=E7=94=B1=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/electricity_bill_calc_service.iml | 8 ++------ global/redis.go | 8 ++++---- router/router.go | 2 +- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.idea/electricity_bill_calc_service.iml b/.idea/electricity_bill_calc_service.iml index c956989..7ee078d 100644 --- a/.idea/electricity_bill_calc_service.iml +++ b/.idea/electricity_bill_calc_service.iml @@ -1,8 +1,4 @@ - - - - - - + + \ No newline at end of file diff --git a/global/redis.go b/global/redis.go index 8afb039..ebf038b 100644 --- a/global/redis.go +++ b/global/redis.go @@ -18,10 +18,10 @@ func SetupRedisConnection() error { a := fmt.Sprintf("%s:%d", config.RedisSettings.Host, config.RedisSettings.Port) fmt.Println(a) Rd, err = rueidis.NewClient(rueidis.ClientOption{ - InitAddress: []string{"127.0.0.1:6379"}, - Password: "", - SelectDB: config.RedisSettings.DB, - DisableCache:true, + InitAddress: []string{"192.168.88.129:6379"}, + Password: "123456", + SelectDB: config.RedisSettings.DB, + DisableCache: true, }) if err != nil { return err diff --git a/router/router.go b/router/router.go index 5359d0d..ea7b3e2 100644 --- a/router/router.go +++ b/router/router.go @@ -53,7 +53,7 @@ func App() *fiber.App { controller.InitializeInvoiceHandler(app) controller.InitializeTopUpHandlers(app) controller.InitializeReportHandlers(app) - + controller.InitializeSynchronizeHandlers(app) controller.InitializeWithdrawHandlers(app) // 公示撤回 controller.InitializeFoundationHandlers(app) // 基础数据 controller.InitializeStatisticsController(app) // 首页信息