xingzai 8 bulan lalu
induk
melakukan
1416c504ef
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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
 }