duxin 1 жил өмнө
parent
commit
a7c7a7eb27

+ 3 - 3
src/jfw/front/frontRouter.go

@@ -244,7 +244,7 @@ func (this *CommonRouter) doPcBigPage(pageSign, types string) error {
 func esSeoId(isWinner bool, idName string) string {
 	var seoId string
 	redisKey := fmt.Sprintf("getSeoId_%v_%s", isWinner, idName)
-	seoId = redis.GetStr("newother", redisKey)
+	//seoId = redis.GetStr("newother", redisKey)
 	if seoId != "" {
 		return seoId
 	}
@@ -254,14 +254,14 @@ func esSeoId(isWinner bool, idName string) string {
 		//public.GlobalCommonMysql.SelectBySql(q, idName, 1, 1)
 		if data := public.GlobalCommonMysql.FindOne("dws_f_ent_baseinfo", map[string]interface{}{
 			"company_id": idName,
-		}, `{"seo_id":1}`, ""); data != nil && len(*data) > 0 {
+		}, "seo_id", ""); data != nil && len(*data) > 0 {
 			seoId = common.InterfaceToStr((*data)["seo_id"])
 		}
 
 	} else {
 		if data := public.GlobalCommonMysql.FindOne("dws_f_ent_baseinfo", map[string]interface{}{
 			"name": idName,
-		}, `{"seo_id":1}`, ""); data != nil && len(*data) > 0 {
+		}, "seo_id", ""); data != nil && len(*data) > 0 {
 			seoId = common.InterfaceToStr((*data)["seo_id"])
 		}
 	}

+ 2 - 2
src/jfw/modules/app/src/app/front/bigMember.go

@@ -90,13 +90,13 @@ func esSeoId(isWinner bool, idName string) string {
 		entId := encrypt.DecodeArticleId2ByCheck(idName)[0]
 		if data := public.GlobalCommonMysql.FindOne("dws_f_ent_baseinfo", map[string]interface{}{
 			"company_id": entId,
-		}, `{"seo_id":1}`, ""); data != nil && len(*data) > 0 {
+		}, "seo_id", ""); data != nil && len(*data) > 0 {
 			seoId = qutil.InterfaceToStr((*data)["seo_id"])
 		}
 	} else {
 		if data := public.GlobalCommonMysql.FindOne("dws_f_ent_baseinfo", map[string]interface{}{
 			"name": idName,
-		}, `{"seo_id":1}`, ""); data != nil && len(*data) > 0 {
+		}, "seo_id", ""); data != nil && len(*data) > 0 {
 			seoId = qutil.InterfaceToStr((*data)["seo_id"])
 		}
 	}