浏览代码

分支合并

liumiaomiao 3 年之前
父节点
当前提交
08a927f26d

+ 2 - 1
config_formal/sword_172.17.145.167/entnichePc.json

@@ -1,4 +1,5 @@
 {
 	"entnichePcUser": [18624,12724,10256,14002,14004,14576,14577,1416,1421,2546,9522,10500,10511,10617,12469,7426,12814,12815,12816,12817,12818,12819,12820,12823,12822,12920,14128,14796],
-	"hideEntnicheMenu": [10256,14002,14004,14577,1416]
+	"hideEntnicheMenu": [10256,14002,14004,14577,1416],
+	"privateDataPhone": "18530014520,13525530909,13938299083,15225181827,18537851805,15830500028"
 }

+ 2 - 2
config_formal/sword_172.17.145.167/time.txt

@@ -1,2 +1,2 @@
-#上次修改时间,比当前修改时间小就行
-2022-1-18 9:00:00
+#上次修改时间,比当前修改时间小就行
+2022-1-21 00:00:00

+ 2 - 1
config_formal/sword_172.17.148.50/entnichePc.json

@@ -1,4 +1,5 @@
 {
 	"entnichePcUser": [18624,12724,10256,14002,14004,14576,14577,1416,1421,2546,9522,10500,10511,10617,12469,7426,12814,12815,12816,12817,12818,12819,12820,12823,12822,12920,14128,14796],
-	"hideEntnicheMenu": [10256,14002,14004,14577,1416]
+	"hideEntnicheMenu": [10256,14002,14004,14577,1416],
+	"privateDataPhone": "18530014520,13525530909,13938299083,15225181827,18537851805,15830500028"
 }

+ 2 - 2
config_formal/sword_172.17.148.50/time.txt

@@ -1,2 +1,2 @@
-#上次修改时间,比当前修改时间小就行
-2022-1-18 9:00:00
+#上次修改时间,比当前修改时间小就行
+2022-1-21 00:00:00

+ 2 - 1
src/entnichePc.json

@@ -1,4 +1,5 @@
 {
 	"entnichePcUser": [14595,442,1686,1685,1711],
-	"hideEntnicheMenu": [1711,442]
+	"hideEntnicheMenu": [1711,442],
+	"privateDataPhone": "18530014520,13525530909,13938299083"
 }

+ 3 - 2
src/jfw/config/config.go

@@ -18,8 +18,9 @@ var Wxoauth, Wxoauthinfo string
 var GmailAuth []*mail.GmailAuth
 
 type entnichePcConf struct {
-	EntnichePcUser   []int `json:"entnichePcUser"`
-	HideEntnicheMenu []int `json:"hideEntnicheMenu"`
+	EntnichePcUser   []int  `json:"entnichePcUser"`
+	HideEntnicheMenu []int  `json:"hideEntnicheMenu"`
+	PrivateDataPhone string `json:"privateDataPhone"`
 }
 
 var EntnichePcConf *entnichePcConf

+ 5 - 0
src/jfw/front/dataExport.go

@@ -839,6 +839,7 @@ func (this *DataExport) GetPcEntAuth() {
 	//phone = "15136225931"
 	myEntMenu := false
 	entnicheMenu := false
+	privatedata := false
 	pcUsers := map[int]bool{}
 	hideUsers := map[int]bool{}
 	for _, v := range config.EntnichePcConf.EntnichePcUser {
@@ -887,10 +888,14 @@ func (this *DataExport) GetPcEntAuth() {
 				}
 			}
 		}
+		if strings.Contains(config.EntnichePcConf.PrivateDataPhone, phone) {
+			privatedata = true
+		}
 	}
 	data := map[string]interface{}{
 		"myEntMenu":    myEntMenu,
 		"entnicheMenu": entnicheMenu,
+		"privatedata":  privatedata,
 	}
 	this.ServeJson(data)
 }

+ 5 - 0
src/web/staticres/js/login.js

@@ -356,6 +356,11 @@ function checkMenuForEnt () {
                             +"<span>商机管理</span>"
                             +"</div>"
                     }
+                    if(r.privatedata){
+                      tempHtml+= "<div class=\"myorderDiv\" onclick=\"window.location.href='/swordfish/page_big_pc/free/custom_search'\">"
+                          +"<span>画像分析系统</span>"
+                          +"</div>"
+                    }
                     $(".infoList .lastBox").before(tempHtml)
                 }
             })