Преглед изворни кода

Merge branch 'dev/v4.8.47_fuwencai' of https://jygit.jydev.jianyu360.cn/qmx/jy into dev/v4.8.47_fuwencai

wangshan пре 2 година
родитељ
комит
a74b1af3df

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

@@ -104,7 +104,7 @@ onceAgain:
 		infoTypeList, topMap = jyutil.GetInfoType()
 		switch types {
 		case jyutil.Label["area"]: //地区
-			if len(codes) == 2 {
+			if len(codes) == 3 {
 				areaCode, cityCode := codes[0], codes[1]
 				if areaToCode[areaCode] != nil {
 					biddingInfo.IsEffective = true

+ 5 - 5
src/jfw/modules/app/src/app/jyutil/tags.go

@@ -119,7 +119,7 @@ func GetHotArea() (list []map[string]interface{}) {
 			for _, v := range *data {
 				list = append(list, map[string]interface{}{
 					"name": qu.ObjToString(v["name"]),
-					"url":  fmt.Sprintf(mobileHref, Label["area"], combine(2, qu.Int64All(v["code"]), 0, 0)),
+					"url":  fmt.Sprintf(mobileHref, Label["area"], combine(3, qu.Int64All(v["code"]), 0, 1)),
 				})
 			}
 			if len(list) > 0 {
@@ -178,17 +178,17 @@ func GetAllArea() (areaList []map[string][]*SeoInfo, areaToCode map[string]*SeoI
 			case 1:
 				areaToCode[fmt.Sprintf("%d", code)] = &SeoInfo{
 					Name: name,
-					Url:  fmt.Sprintf(mobileHref, Label["area"], combine(2, qu.Int64All(v["code"]), 0, 0)),
+					Url:  fmt.Sprintf(mobileHref, Label["area"], combine(3, qu.Int64All(v["code"]), 0, 1)),
 				}
-				areaMap[qu.ObjToString(v["name"])] = fmt.Sprintf(mobileHref, Label["area"], combine(2, qu.Int64All(v["code"]), 0, 0))
+				areaMap[qu.ObjToString(v["name"])] = fmt.Sprintf(mobileHref, Label["area"], combine(3, qu.Int64All(v["code"]), 0, 1))
 			case 2:
 				cityToCode[fmt.Sprintf("%d", code)] = &SeoInfo{
 					Name: name,
-					Url:  fmt.Sprintf(mobileHref, Label["area"], combine(2, pCode, code, 0)),
+					Url:  fmt.Sprintf(mobileHref, Label["area"], combine(3, pCode, code, 1)),
 				}
 				areaToCity[fmt.Sprintf("%d", pCode)] = append(areaToCity[fmt.Sprintf("%d", pCode)], &SeoInfo{
 					Name: name,
-					Url:  fmt.Sprintf(mobileHref, Label["area"], combine(2, pCode, code, 0)),
+					Url:  fmt.Sprintf(mobileHref, Label["area"], combine(3, pCode, code, 1)),
 				})
 			}
 		}