Ver código fonte

锁定逻辑修改

WH01243 7 meses atrás
pai
commit
4f492cacdc
1 arquivos alterados com 11 adições e 3 exclusões
  1. 11 3
      clueSync/autoTask.go

+ 11 - 3
clueSync/autoTask.go

@@ -550,12 +550,20 @@ func LockHandle() {
 						"id": clue_id,
 					}, 3, "")
 				}
-			} else if company_nature == 0 && company_verification == 1 && position_id != "" {
+			} else if company_nature == 0 && company_verification == 1 {
 				//已锁定处理
-				if lock_status != 1 {
+				if position_id != "" {
 					go UpdateData(1, map[string]interface{}{
-						"cluename": cluename,
+						"cluename":             cluename,
+						"company_verification": 1,
+						"company_nature":       0,
 					}, 1, position_id)
+				} else {
+					go UpdateData(1, map[string]interface{}{
+						"cluename":             cluename,
+						"company_verification": 1,
+						"company_nature":       0,
+					}, 2, "")
 				}
 			} else {
 				//未锁定处理