浏览代码

关系网限制

wangchuanjin 9 年之前
父节点
当前提交
f8580dfba8
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 1
      core/src/qfw/yellowpage/yellowpagemanager.go
  2. 0 1
      core/src/web/staticres/js/entportrait.js

+ 1 - 1
core/src/qfw/yellowpage/yellowpagemanager.go

@@ -448,7 +448,7 @@ func (yp *Yellowpage) GetRelation() error {
 	var relation map[string]interface{}
 	var flag bool
 	//判断登录状态
-	if yp.GetSession("userType") != nil && util.IntAll(yp.GetSession("userType")) > 0 /*&& util.IntAll(yp.GetSession("identWay")) == 1 */ {
+	if yp.GetSession("userType") != nil && util.IntAll(yp.GetSession("userType")) > 0 && util.IntAll(yp.GetSession("identWay")) == 1 {
 		regNo := yp.GetString("regNo")
 		entName := yp.GetString("entName")
 		if regNo != "" && entName != "" {

+ 0 - 1
core/src/web/staticres/js/entportrait.js

@@ -156,7 +156,6 @@ function b_afterLogin(flag,result){
 	if(typeof(result) != "undefined"){
 		identWayFlag = result.identWay == 1;
 	}
-	identWayFlag = true;//暂时把认证权限放开
 	relationFlag = flag && identWayFlag && !relFlag;
 	if(!$(".ent-tab>li:eq(1)").hasClass("ent-active") && relationFlag){
 		$(".ent-tab>li:eq(1)").addClass("disabled");