Bläddra i källkod

隐藏按钮全部打开

xingzai 2 år sedan
förälder
incheckning
69bbfb87a0
2 ändrade filer med 17 tillägg och 17 borttagningar
  1. 16 16
      controllers/report.go
  2. 1 1
      controllers/user.go

+ 16 - 16
controllers/report.go

@@ -1138,22 +1138,22 @@ func (this *ReportController) IsShow() {
 	}
 	var resp models.IsShow
 
-	//resp.IsShowChart = true
-	//resp.IsShowResearch = true
-	//resp.IsShowList = true
-	//mobile := user.Mobile
-	//if mobile == "" {
-	//	br.Ret = 200
-	//	br.Success = true
-	//	br.Data = resp
-	//	return
-	//}
-	//total, _ := models.GetUserIsAdminCount(mobile)
-	//if total > 0 {
-	//	resp.IsShow = true
-	//}
-	//resp.LinkWxExplain = utils.LINK_WX_EXPLAIN
-	//resp.YanXuan_Explain = true
+	resp.IsShowChart = true
+	resp.IsShowResearch = true
+	resp.IsShowList = true
+	mobile := user.Mobile
+	if mobile == "" {
+		br.Ret = 200
+		br.Success = true
+		br.Data = resp
+		return
+	}
+	total, _ := models.GetUserIsAdminCount(mobile)
+	if total > 0 {
+		resp.IsShow = true
+	}
+	resp.LinkWxExplain = utils.LINK_WX_EXPLAIN
+	resp.YanXuan_Explain = true
 	br.Ret = 200
 	br.Success = true
 	br.Data = resp

+ 1 - 1
controllers/user.go

@@ -1117,7 +1117,7 @@ func (this *UserController) IsShow() {
 	}
 	if companyDetail != nil && companyDetail.IsSuspend == 0 {
 		if detail.ConfigValue == "1" && (companyDetail.Status == "正式" || companyDetail.Status == "试用" || companyDetail.Status == "永续") && count == 0 {
-			//resp.IsShow = true
+			resp.IsShow = true
 		}
 	}
 	br.Ret = 200