|
@@ -244,7 +244,12 @@ namespace GxPress.Repository.Implement.Media
|
|
|
var databaseType = _databaseTypestr.ToEnum<DatabaseType>(DatabaseType.MySql);
|
|
|
var database = new Database(databaseType, _connectionString);
|
|
|
var connection = database.GetConnection();
|
|
|
- return await connection.QueryAsync<MediaCathedraResult>(sql);
|
|
|
+ var result = await connection.QueryAsync<MediaCathedraResult>(sql);
|
|
|
+ foreach (var item in result)
|
|
|
+ {
|
|
|
+ item.ImageUrls = StringUtils.AddDomain(item.ImageUrls);
|
|
|
+ }
|
|
|
+ return result;
|
|
|
}
|
|
|
return null;
|
|
|
}
|