From fc9aee8bdb63c814522fce0f4feed202e9466d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Thu, 30 Dec 2021 11:14:42 +0800 Subject: [PATCH] update service wechat --- service/wechatminiprogram/cgi-bin.token.monitor.go | 8 ++++---- service/wechatoffice/cgi-bin.token.monitor.go | 8 ++++---- service/wechatoffice/getticket.monitor.go | 4 ++-- service/wechatunion/cgi-bin.token.monitor.go | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/service/wechatminiprogram/cgi-bin.token.monitor.go b/service/wechatminiprogram/cgi-bin.token.monitor.go index 0bbdb246..8781881b 100644 --- a/service/wechatminiprogram/cgi-bin.token.monitor.go +++ b/service/wechatminiprogram/cgi-bin.token.monitor.go @@ -8,15 +8,15 @@ import ( ) var ( - qdTypeDb = "DB" - qdTypeRdb = "redis" + QdTypeDb = "DB" + QdTypeRdb = "redis" ) func (app *App) AuthGetAccessTokenMonitor(qdType string) error { result := app.GetCallBackIp() if len(result.Result.IpList) <= 0 { switch qdType { - case qdTypeDb: + case QdTypeDb: if app.Db == nil { return errors.New("驱动没有初始化") } @@ -33,7 +33,7 @@ func (app *App) AuthGetAccessTokenMonitor(qdType string) error { }) return nil } - case qdTypeRdb: + case QdTypeRdb: if app.RDb == nil { return errors.New("驱动没有初始化") } diff --git a/service/wechatoffice/cgi-bin.token.monitor.go b/service/wechatoffice/cgi-bin.token.monitor.go index 475d7940..4f12193a 100644 --- a/service/wechatoffice/cgi-bin.token.monitor.go +++ b/service/wechatoffice/cgi-bin.token.monitor.go @@ -8,15 +8,15 @@ import ( ) var ( - qdTypeDb = "DB" - qdTypeRdb = "redis" + QdTypeDb = "DB" + QdTypeRdb = "redis" ) func (app *App) AuthGetAccessTokenMonitor(qdType string) error { result := app.GetCallBackIp() if len(result.Result.IpList) <= 0 { switch qdType { - case qdTypeDb: + case QdTypeDb: if app.Db == nil { return errors.New("驱动没有初始化") } @@ -33,7 +33,7 @@ func (app *App) AuthGetAccessTokenMonitor(qdType string) error { }) return nil } - case qdTypeRdb: + case QdTypeRdb: if app.RDb == nil { return errors.New("驱动没有初始化") } diff --git a/service/wechatoffice/getticket.monitor.go b/service/wechatoffice/getticket.monitor.go index 383b78ef..b96373c0 100644 --- a/service/wechatoffice/getticket.monitor.go +++ b/service/wechatoffice/getticket.monitor.go @@ -9,10 +9,10 @@ func (app *App) AuthGetJsapiTicketMonitor(qdType string) error { result := app.GetCallBackIp() if len(result.Result.IpList) <= 0 { switch qdType { - case qdTypeDb: + case QdTypeDb: app.GetJsapiTicketDb() return nil - case qdTypeRdb: + case QdTypeRdb: app.GetJsapiTicketRDb() return nil default: diff --git a/service/wechatunion/cgi-bin.token.monitor.go b/service/wechatunion/cgi-bin.token.monitor.go index 3bd5e665..d165ff63 100644 --- a/service/wechatunion/cgi-bin.token.monitor.go +++ b/service/wechatunion/cgi-bin.token.monitor.go @@ -8,15 +8,15 @@ import ( ) var ( - qdTypeDb = "DB" - qdTypeRdb = "redis" + QdTypeDb = "DB" + QdTypeRdb = "redis" ) func (app *App) AuthGetAccessTokenMonitor(qdType string) error { result := app.GetCallBackIp() if len(result.Result.IpList) <= 0 { switch qdType { - case qdTypeDb: + case QdTypeDb: if app.Db == nil { return errors.New("驱动没有初始化") } @@ -33,7 +33,7 @@ func (app *App) AuthGetAccessTokenMonitor(qdType string) error { }) return nil } - case qdTypeRdb: + case QdTypeRdb: if app.RDb == nil { return errors.New("驱动没有初始化") }