Selaa lähdekoodia

fit:用户id异常

wangshan 3 vuotta sitten
vanhempi
commit
3be99c3e9e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/jfw/front/org_structure.go

+ 1 - 1
src/jfw/front/org_structure.go

@@ -67,7 +67,7 @@ func (this *OrgStructure) InvitationPage() error {
 	OrgUrl := util.ObjToString(config.Sysconfig["wxOrgUrl"]) + "?entUserId=" + entUserId + "&depId=" + depId + "&entId=" + entId + "&depcname=" + depcname
 	if !mobileReg.MatchString(client) {
 		OrgUrl = util.ObjToString(config.Sysconfig["pcOrgUrl"]) + "?entUserId=" + entUserId + "&depId=" + depId + "&entId=" + entId + "&depcname=" + depcname
-	} else if entUserId_sess == nil || entUserId_sess.(string) != entUserId_str {
+	} else if entUserId_sess == nil || util.ObjToString(entUserId_sess) != entUserId_str {
 		userId := util.ObjToString(this.Session().Get("userId"))
 		openId := util.ObjToString(this.Session().Get("s_m_openid"))
 		phone := util.ObjToString(this.Session().Get("phone"))