xingzai il y a 8 mois
Parent
commit
1416c504ef
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 }