瀏覽代碼

fix:save 8

jimmyyem 5 月之前
父節點
當前提交
215186c01a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      internal/logic/User/do_api_user_login_logic.go

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

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