...
|
...
|
@@ -9,6 +9,7 @@ import ( |
|
|
"net/http"
|
|
|
"opp/internal/utils"
|
|
|
"opp/services/agg"
|
|
|
"strconv"
|
|
|
"time"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/mmm-go/gocomm/identity/uid"
|
...
|
...
|
@@ -35,8 +36,9 @@ func Login(header *protocol.RequestHeader, request *protocol.LoginRequest) (rsp |
|
|
var (
|
|
|
user *models.User
|
|
|
userAuth *models.UserAuth
|
|
|
id, _ = strconv.ParseInt(request.Uid, 10, 64)
|
|
|
getUserRequest *protocol.UCenterServerLoginRequest = &protocol.UCenterServerLoginRequest{
|
|
|
Uid: request.Uid,
|
|
|
Uid: id,
|
|
|
Token: request.Token,
|
|
|
Type: 2,
|
|
|
}
|
...
|
...
|
@@ -44,7 +46,7 @@ func Login(header *protocol.RequestHeader, request *protocol.LoginRequest) (rsp |
|
|
message *protocol.Message
|
|
|
company *models.Company
|
|
|
)
|
|
|
user, err = models.GetUserByUcenterId(request.Uid)
|
|
|
user, err = models.GetUserByUcenterId(id)
|
|
|
if err != nil {
|
|
|
log.Error(err)
|
|
|
err = protocol.NewErrWithMessage(2002, err) //账号不存在
|
...
|
...
|
|