jimmyyem hace 5 meses
padre
commit
307f1e806b
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      internal/logic/User/do_api_user_login_logic.go

+ 1 - 3
internal/logic/User/do_api_user_login_logic.go

@@ -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)
 	}