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