Przeglądaj źródła

fix:seo查询需改

duxin 1 rok temu
rodzic
commit
9b0932a6d6

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

@@ -253,7 +253,7 @@ func esSeoId(isWinner bool, idName string) string {
 		//q := "SELECT  company_id AS id,name,name_id,seo_id  FROM   dws_f_ent_baseinfo WHERE    name_id =? and company_id !='' and company_id is not null  AND (identity_type &(1 << ?)) > 0 order by latest_time desc  limit ?"
 		//public.GlobalCommonMysql.SelectBySql(q, idName, 1, 1)
 		if data := public.GlobalCommonMysql.FindOne("dws_f_ent_baseinfo", map[string]interface{}{
-			"name_id": idName,
+			"company_id": idName,
 		}, `{"seo_id":1}`, ""); data != nil && len(*data) > 0 {
 			seoId = common.InterfaceToStr((*data)["seo_id"])
 		}

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

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