Browse Source

fit:用户id异常

wangshan 3 năm trước cách đây
mục cha
commit
3be99c3e9e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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"))