Browse Source

配置重写处理

WH01243 1 year ago
parent
commit
2cecd6cec8
2 changed files with 2 additions and 3 deletions
  1. 0 3
      clueSync/job.go
  2. 2 0
      clueSync/jobutil.go

+ 0 - 3
clueSync/job.go

@@ -435,7 +435,6 @@ func FormatData(data map[string]interface{}, item string) (bool, bool) {
 
 func SaveClue(item, userId, uId, top_cluetype, sub_cluetype, topname, subname, cluename, name, saleName, phone, position, department, departments, industry, follow_project_area, role, seatNumber string, positionId int64, source, sourceCode, remark string, keyword []string, belong_to string, isGroup, isCommerce int, isFreeze bool, demand string) bool {
 	log.Println("线索修改前", item, userId, uId, top_cluetype, sub_cluetype, topname, subname, cluename, name, saleName, phone, position, department, departments, industry, follow_project_area, role, seatNumber, positionId, source, sourceCode, remark)
-	return true
 	nowTime := time.Now().Format("2006-01-02 15:04:05")
 	nowTimes := time.Unix(time.Now().Unix()+3600*12, 0).Format("2006-01-02 15:04:05")
 	clueId, uodateId1, uodateId2, uodateId3, uodateId4, uodateId5, uodateId6 := int64(0), int64(0), int64(0), int64(0), int64(0), int64(0), int64(0)
@@ -1238,8 +1237,6 @@ func WorkUpdateClue(data map[string]interface{}, saleData []map[string]interface
 }
 func UpdateClue(data map[string]interface{}, saleData []map[string]interface{}, item, userId, uId, top_cluetype, sub_cluetype, topname, subname, cluename, name, saleName, phone, position, department, departments, industry, follow_project_area, role, seatNumber, level string, positionId int64, source, sourceCode, remark string, keyword []string, belong_to string, isGroup, isCommerce int, pIsOk bool) bool {
 	name = strings.ReplaceAll(name, " ", "")
-	log.Println("线索修改前", data, item, userId, uId, top_cluetype, sub_cluetype, topname, subname, cluename, name, saleName, phone, position, department, departments, industry, follow_project_area, role, seatNumber, level, positionId, source, sourceCode, remark)
-	return true
 	nowTime := time.Now().Format("2006-01-02 15:04:05")
 	nowTimes := time.Unix(time.Now().Unix()+3600*12, 0).Format("2006-01-02 15:04:05")
 	trailstatus := common.ObjToString(data["trailstatus"]) //data都为原线索数据

+ 2 - 0
clueSync/jobutil.go

@@ -1319,6 +1319,7 @@ func rebind() {
 				cfg.AllocationTime = rebindTimeEnd
 			}
 		}
+		common.WriteSysConfig(&cfg)
 	}
 }
 
@@ -1354,4 +1355,5 @@ func activeUsers() {
 			}
 		}
 	}
+	common.WriteSysConfig(&cfg)
 }