|
@@ -206,6 +206,7 @@ func InfoPub(info map[string]interface{}) {
|
|
|
tmp := info["appendInfo"].(map[string]interface{})
|
|
|
saveMap := make(map[string]interface{})
|
|
|
jyMap := make(map[string]interface{})
|
|
|
+ extractType := 0
|
|
|
for _, f := range InfoFields {
|
|
|
if tmp[f] == nil {
|
|
|
continue
|
|
@@ -269,6 +270,7 @@ func InfoPub(info map[string]interface{}) {
|
|
|
}
|
|
|
saveMap["infoattribute"] = InfoCodes[it-1].Code
|
|
|
saveMap["ispublic"] = InfoCodes[it-1].IsPublic //是否公开
|
|
|
+ extractType = InfoCodes[it-1].ExtractType
|
|
|
}
|
|
|
} else if f == "recommended_service" {
|
|
|
saveMap[SaveFields[f]] = util.IntAll(tmp[f])
|
|
@@ -293,7 +295,7 @@ func InfoPub(info map[string]interface{}) {
|
|
|
saveMap["site"] = "剑鱼信息发布平台"
|
|
|
saveMap["channel"] = "公告"
|
|
|
saveMap["spidercode"] = "a_jyxxfbpt_gg"
|
|
|
- saveMap["extracttype"] = 0
|
|
|
+ saveMap["extracttype"] = extractType
|
|
|
saveMap["areaval"] = 0
|
|
|
saveMap["detail_isvalidity"] = 1
|
|
|
saveMap["infoformat"] = 1
|