wp
workabee 7 months ago
parent 8070c54ed5
commit e48d7ab6c9

@ -2,7 +2,6 @@ package service
import ( import (
"github.com/exhibition-main/api/account" "github.com/exhibition-main/api/account"
appconfig "github.com/exhibition-main/internal/config"
"github.com/exhibition-main/internal/msg" "github.com/exhibition-main/internal/msg"
"github.com/exhibition-main/internal/response" "github.com/exhibition-main/internal/response"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
@ -18,10 +17,10 @@ func OnlySend(c *gin.Context) {
response.ResponseQuickMsg(c, msg.Fail, msg.INVALID_PARAMS, nil) response.ResponseQuickMsg(c, msg.Fail, msg.INVALID_PARAMS, nil)
return return
} }
req.Domain = appconfig.Data.System.Domain //req.Domain = appconfig.Data.System.Domain
req.Scope = "exhibition" //req.Scope = "exhibition"
res, err := AccountProvider.OnlySendMsg(c, &req) res, err := AccountProvider.SendMsg(c, &req)
if err != nil { if err != nil {
response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil) response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
return return
@ -41,8 +40,8 @@ func OnlyCheck(c *gin.Context) {
return return
} }
req.Domain = appconfig.Data.System.Domain //req.Domain = appconfig.Data.System.Domain
req.Scope = "exhibition" //req.Scope = "exhibition"
res, err := AccountProvider.OnlyCheckMsg(c, &req) res, err := AccountProvider.OnlyCheckMsg(c, &req)
if err != nil { if err != nil {

Loading…
Cancel
Save