wkyuer 1 týždeň pred
rodič
commit
30839dabad

+ 3 - 1
src/jfw/modules/publicapply/src/subscribePush/entity/keyWords.go

@@ -255,7 +255,9 @@ func AddKeyWordsFree(types, userId, classIndex, className, keywordsIndex, keywor
 			saveData[types+".a_key."+keywordsIndex+".matchway"] = matchWay
 			saveData[types+".a_key."+keywordsIndex+".updatetime"] = time.Now().Unix()
 			if gconv.Bool(sessionMap["isHelpSub"]) {
-				saveData["i_ts_guide"] = FreeIsInTsGuide(userId)
+				if v := FreeIsInTsGuide(userId); v != 0 {
+					saveData["i_ts_guide"] = v
+				}
 			}
 		}
 	}

+ 4 - 1
src/jfw/modules/publicapply/src/subscribePush/entity/setting.go

@@ -122,7 +122,10 @@ func FreeSubChange(userId string, area, district *map[string]interface{}, indust
 		}
 	}
 	if gconv.Bool(sessionMap["isHelpSub"]) {
-		setMap["i_ts_guide"] = FreeIsInTsGuide(userId)
+		if v := FreeIsInTsGuide(userId); v != 0 {
+			setMap["i_ts_guide"] = v
+		}
+
 	}
 	updateOk := config.Compatible.Update(userId, map[string]interface{}{
 		"$set": setMap,