|
@@ -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"])
|
|
|
}
|
|
|
}
|