李昊 4 years ago
parent
commit
282308fba5

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

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