正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
@@ -35,6 +35,7 @@ func Login(header *protocol.RequestHeader, request *protocol.LoginRequest) (rsp | @@ -35,6 +35,7 @@ func Login(header *protocol.RequestHeader, request *protocol.LoginRequest) (rsp | ||
35 | }() | 35 | }() |
36 | rsp = &protocol.LoginResponse{} | 36 | rsp = &protocol.LoginResponse{} |
37 | if partnerInfo, err = PartnerInfoService.GetPartnerInfo(&query.GetPartnerInfoQuery{Account: request.Phone}); err != nil { | 37 | if partnerInfo, err = PartnerInfoService.GetPartnerInfo(&query.GetPartnerInfoQuery{Account: request.Phone}); err != nil { |
38 | + log.Error(err) | ||
38 | //子账号 | 39 | //子账号 |
39 | if partnerSubAccount, err = PartnerSubAccountRepository.FindOne(map[string]interface{}{"account": request.Phone}); err == nil { | 40 | if partnerSubAccount, err = PartnerSubAccountRepository.FindOne(map[string]interface{}{"account": request.Phone}); err == nil { |
40 | partnerInfo = &domain.PartnerInfo{ | 41 | partnerInfo = &domain.PartnerInfo{ |
@@ -7,8 +7,7 @@ import ( | @@ -7,8 +7,7 @@ import ( | ||
7 | ) | 7 | ) |
8 | 8 | ||
9 | func init() { | 9 | func init() { |
10 | - nsV1 := beego.NewNamespace("v1", beego.NSBefore(middleware.CheckJWTToken)) //beego.NSNamespace("auth", beego.NSInclude(&controllers.AuthController{})), | ||
11 | - | 10 | + nsV1 := beego.NewNamespace("v1", beego.NSBefore(middleware.CheckJWTToken)) //beego.NSNamespace("auth", beego.NSInclude(&controllers.AuthController{})) |
12 | nsV1.Router("/auth/login", &controllers.AuthController{}, "Post:Login") | 11 | nsV1.Router("/auth/login", &controllers.AuthController{}, "Post:Login") |
13 | nsV1.Router("/auth/smsCode", &controllers.AuthController{}, "Post:SmsCode") | 12 | nsV1.Router("/auth/smsCode", &controllers.AuthController{}, "Post:SmsCode") |
14 | nsV1.Router("/auth/accessToken", &controllers.AuthController{}, "Post:AccessToken") | 13 | nsV1.Router("/auth/accessToken", &controllers.AuthController{}, "Post:AccessToken") |
-
请 注册 或 登录 后发表评论