xingzai 8 месяцев назад
Родитель
Сommit
1416c504ef
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/cygx/article.go

+ 1 - 1
services/cygx/article.go

@@ -89,7 +89,7 @@ func GetArticleSourcePlatform(SourcePlatform string) (sourcePlatformResp int) {
 	} else if SourcePlatform == "2" {
 		sourcePlatformResp = 2
 	} else {
-		sourcePlatformResp = 1
+		sourcePlatformResp, _ = strconv.Atoi(SourcePlatform)
 	}
 	return
 }