正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
@@ -2,6 +2,7 @@ package controllers | @@ -2,6 +2,7 @@ package controllers | ||
2 | 2 | ||
3 | import ( | 3 | import ( |
4 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/auth" | 4 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/application/auth" |
5 | + "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/log" | ||
5 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol" | 6 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol" |
6 | "time" | 7 | "time" |
7 | ) | 8 | ) |
@@ -27,7 +28,11 @@ func (this *AuthController) Login() { | @@ -27,7 +28,11 @@ func (this *AuthController) Login() { | ||
27 | return | 28 | return |
28 | } | 29 | } |
29 | header := this.GetRequestHeader(this.Ctx) | 30 | header := this.GetRequestHeader(this.Ctx) |
30 | - msg = protocol.NewReturnResponse(auth.Login(header, request)) | 31 | + data, err := auth.Login(header, request) |
32 | + if err != nil { | ||
33 | + log.Error(err) | ||
34 | + } | ||
35 | + msg = protocol.NewReturnResponse(data, err) | ||
31 | } | 36 | } |
32 | 37 | ||
33 | //SmsCode | 38 | //SmsCode |
-
请 注册 或 登录 后发表评论