Skip to content

Commit

Permalink
v5.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
trueai-org committed Nov 9, 2024
1 parent 7ecc586 commit 5af938f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Midjourney.API/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<title>Midjourney Proxy Admin</title>
<link rel="stylesheet" href="/umi.db3f196a.css">
<script async src="/scripts/loading.js"></script>
<script src="/preload_helper.024a0a7c.js"></script>
<script src="/preload_helper.1f0e6889.js"></script>
</head>
<body>
<div id="root"></div>
<script src="/umi.b1d34410.js"></script>
<script src="/umi.d23ac18d.js"></script>
</body>
</html>

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Midjourney.Infrastructure/GlobalConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class GlobalConfiguration
/// <summary>
/// 版本号
/// </summary>
public static string Version { get; set; } = "v5.11.3";
public static string Version { get; set; } = "v5.12.0";

/// <summary>
/// 全局配置项
Expand Down
5 changes: 5 additions & 0 deletions src/Midjourney.Infrastructure/Models/Setting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ public class Setting : ProxyProperties
/// 启用用户自定义上传 Base64
/// </summary>
public bool EnableUserCustomUploadBase64 { get; set; } = true;

/// <summary>
/// 启用转换官方链接
/// </summary>
public bool EnableConvertOfficialLink { get; set; } = true;
}

/// <summary>
Expand Down
6 changes: 6 additions & 0 deletions src/Midjourney.Infrastructure/Services/DiscordInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,12 @@ public string GetPrompt(string prompt, TaskInfo info)
/// <returns></returns>
public async Task<string> FormatUrls(string prompt)
{
var setting = GlobalConfiguration.Setting;
if (!setting.EnableConvertOfficialLink)
{
return prompt;
}

if (string.IsNullOrWhiteSpace(prompt))
{
return prompt;
Expand Down

0 comments on commit 5af938f

Please sign in to comment.