|
@@ -2,6 +2,7 @@ package User
|
|
|
|
|
|
import (
|
|
|
"context"
|
|
|
+ "fmt"
|
|
|
"github.com/suyuan32/simple-admin-common/msg/errormsg"
|
|
|
"github.com/zeromicro/go-zero/core/errorx"
|
|
|
"time"
|
|
@@ -62,7 +63,8 @@ func (l *DoApiUserLoginLogic) DoApiUserLogin(req *types.UserLoginReq) (*types.Us
|
|
|
return nil, errorx.NewApiInternalError("wechat login error")
|
|
|
}
|
|
|
|
|
|
- if resp != nil && resp.ErrCode != 0 {
|
|
|
+ fmt.Printf("resp=%v \n", resp)
|
|
|
+ if resp.ErrCode != 0 {
|
|
|
return nil, errorx.NewApiInternalError(resp.ErrMSG)
|
|
|
}
|
|
|
|