...
|
...
|
@@ -5,7 +5,7 @@ import ( |
|
|
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/partnerInfo/query"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/partnerInfo/service"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/serviceGateway"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/svr"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/utils"
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol"
|
|
|
"strings"
|
...
|
...
|
@@ -46,7 +46,7 @@ func Login(header *protocol.RequestHeader, request *protocol.LoginRequest) (rsp |
|
|
|
|
|
func SmsCode(request *protocol.SmsCodeRequest) (rsp *protocol.LoginResponse, err error) {
|
|
|
var data map[string]interface{}
|
|
|
sms := serviceGateway.NewHttplibMmmSmsApiServiceGateway()
|
|
|
sms := svr.NewHttplibMmmSmsApiServiceGateway()
|
|
|
data, err = sms.SendSms(request.Phone)
|
|
|
if err != nil {
|
|
|
if msg, ok := data["msg"]; ok {
|
...
|
...
|
@@ -98,7 +98,7 @@ func RefreshToken(request *protocol.RefreshTokenRequest) (rsp *protocol.RefreshT |
|
|
|
|
|
//验证短信验证码 T
|
|
|
func CheckSmsCode(phone, code string) (result bool, err error) {
|
|
|
sms := serviceGateway.NewHttplibMmmSmsApiServiceGateway()
|
|
|
sms := svr.NewHttplibMmmSmsApiServiceGateway()
|
|
|
var data map[string]interface{}
|
|
|
data, err = sms.CheckSmsCode(phone, code)
|
|
|
if err != nil {
|
...
|
...
|
|