Compare commits

..

No commits in common. "0436c7ee398917248583b7c22f93a123c0f0acad" and "fe437e57e7445d7ceeb3b3ee478d0ca053574489" have entirely different histories.

View File

@ -2,6 +2,7 @@ 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"
@ -17,10 +18,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.SendMsg(c, &req)
res, err := AccountProvider.OnlySendMsg(c, &req)
if err != nil {
response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
return
@ -39,9 +40,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 {