|
@@ -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);
|