From a1792ba2d427b0734e6a5d21b13b2587fe747e48 Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 14 Feb 2020 10:06:22 +0800 Subject: [PATCH] =?UTF-8?q?UnionFindAuthBind=E5=9C=A8TypeID=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/auth2/authprovider/defauther.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/auth2/authprovider/defauther.go b/business/auth2/authprovider/defauther.go index 1c6dc8583..ea0ea4620 100644 --- a/business/auth2/authprovider/defauther.go +++ b/business/auth2/authprovider/defauther.go @@ -75,6 +75,10 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType, curAuthTypeID string, unionAu if authDetail != nil { authBindEx.DetailData = string(utils.MustMarshal(authDetail)) } + if authBind.TypeID == "" { + authBind.TypeID = curAuthTypeID + dao.UpdateEntity(db, authBind, "TypeID") + } } else if dao.IsNoRowsError(err) { // 直接找不到,尝试unionID if unionID != "" { // 且有unionID var authBindList []*model.AuthBind