李昊 4 gadi atpakaļ
vecāks
revīzija
f7017c98b8

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/Media/MediaRepository.cs

@@ -676,7 +676,7 @@ namespace GxPress.Repository.Implement.Media
             var sql = $@"SELECT 
                             Id,ImageUrls,Title,Author,MediaType,ReadCount,CreatedDate
                         FROM
-                            tede_media where IsExercises=1 and MediaType={AllTypeConst.Article.GetHashCode()}
+                            tede_media where IsExercises=1 and MediaType={AllTypeConst.Book.GetHashCode()}
                         ORDER BY RAND() LIMIT 3";
             var databaseType = _databaseTypestr.ToEnum<DatabaseType>(DatabaseType.MySql);
             var database = new Database(databaseType, _connectionString);