From d319e24c8bfd37843968631045630ce00f4318e3 Mon Sep 17 00:00:00 2001 From: workabee <2950914812@qq.com> Date: Sun, 18 Feb 2024 15:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/account.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkg/service/account.go b/pkg/service/account.go index 4751192..4d9a0d1 100644 --- a/pkg/service/account.go +++ b/pkg/service/account.go @@ -2,7 +2,6 @@ package service import ( "github.com/exhibition-main/api/account" - appconfig "github.com/exhibition-main/internal/config" "github.com/exhibition-main/internal/msg" "github.com/exhibition-main/internal/response" "github.com/gin-gonic/gin" @@ -18,10 +17,10 @@ func OnlySend(c *gin.Context) { response.ResponseQuickMsg(c, msg.Fail, msg.INVALID_PARAMS, nil) return } - req.Domain = appconfig.Data.System.Domain - req.Scope = "exhibition" + //req.Domain = appconfig.Data.System.Domain + //req.Scope = "exhibition" - res, err := AccountProvider.OnlySendMsg(c, &req) + res, err := AccountProvider.SendMsg(c, &req) if err != nil { response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil) return @@ -40,9 +39,9 @@ func OnlyCheck(c *gin.Context) { response.ResponseQuickMsg(c, msg.Fail, msg.INVALID_PARAMS, nil) return } - - req.Domain = appconfig.Data.System.Domain - req.Scope = "exhibition" + // + //req.Domain = appconfig.Data.System.Domain + //req.Scope = "exhibition" res, err := AccountProvider.OnlyCheckMsg(c, &req) if err != nil {