Merge branch 'develop' of git.ailuowan.com:zzw/lone-services into develop
CI / changes (push) Successful in 1m56s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 34s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 1s
CI / product (push) Successful in 0s
CI / record (push) Successful in 1s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 1s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / changes (push) Successful in 1m56s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 34s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 1s
CI / product (push) Successful in 0s
CI / record (push) Successful in 1s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 1s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
This commit is contained in:
@@ -5,11 +5,11 @@ import (
|
||||
"lone-services/pkg/modelbase"
|
||||
"lone-services/pkg/utils"
|
||||
"lone-services/pkg/validate"
|
||||
store "lone-services/rpc/store/pb"
|
||||
"lone-services/services/store/internal/dao"
|
||||
"lone-services/services/store/internal/model"
|
||||
"strconv"
|
||||
|
||||
"lone-services/rpc/store/pb"
|
||||
"lone-services/services/store/internal/svc"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
@@ -51,12 +51,11 @@ func (l *InfoLogic) Info(in *store.IdRequest) (*store.Response, error) {
|
||||
if info.Id < utils.NumberOne {
|
||||
return l.fail(utils.ErrorNotFund)
|
||||
}
|
||||
if info.Id > utils.NumberZero {
|
||||
mobile, dErr := utils.DecryptPhone(info.UserMobile)
|
||||
info.AesMobile = info.UserMobile
|
||||
if dErr == nil {
|
||||
info.UserMobile = utils.DecryptPhoneReplace(mobile)
|
||||
}
|
||||
|
||||
mobile, dErr := utils.DecryptPhone(info.UserMobile)
|
||||
info.AesMobile = info.UserMobile
|
||||
if dErr == nil {
|
||||
info.UserMobile = mobile
|
||||
}
|
||||
return l.ok(info)
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package logic
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@@ -283,9 +282,6 @@ func fillSessionBizIds(ctx context.Context, session *dao.UserLoginSession, userI
|
||||
return nil
|
||||
}
|
||||
|
||||
fmt.Println("client Code ______________________", client.Code)
|
||||
fmt.Println("userId______________________", userId)
|
||||
fmt.Println("bizId______________________", bizId)
|
||||
session.BizId = bizId
|
||||
storeInfo, err := fetchStoreById(ctx, utils.GetConfigString("services.store"), bizId)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user