Skip to content

Commit

Permalink
v5.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
trueai-org committed Nov 11, 2024
1 parent 5af938f commit eed509c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions src/Midjourney.API/Controllers/SubmitController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,12 @@ public ActionResult<SubmitResultVO> Describe([FromBody] SubmitDescribeDTO descri
return Ok(SubmitResultVO.Fail(ReturnCode.VALIDATION_ERROR, "base64不能为空"));
}

var setting = GlobalConfiguration.Setting;
if (!setting.EnableUserCustomUploadBase64)
{
return Ok(SubmitResultVO.Fail(ReturnCode.VALIDATION_ERROR, "禁止上传"));
}

DataUrl dataUrl;
try
{
Expand Down Expand Up @@ -465,6 +471,12 @@ public ActionResult<SubmitResultVO> Blend([FromBody] SubmitBlendDTO blendDTO)
return Ok(SubmitResultVO.Fail(ReturnCode.VALIDATION_ERROR, "base64List参数错误"));
}

var setting = GlobalConfiguration.Setting;
if (!setting.EnableUserCustomUploadBase64)
{
return Ok(SubmitResultVO.Fail(ReturnCode.VALIDATION_ERROR, "禁止上传"));
}

if (blendDTO.Dimensions == null)
{
return Ok(SubmitResultVO.Fail(ReturnCode.VALIDATION_ERROR, "dimensions参数错误"));
Expand Down
2 changes: 1 addition & 1 deletion src/Midjourney.API/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.d23ac18d.js"></script>
<script src="/umi.b26084e0.js"></script>
</body>
</html>

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.12.0";
public static string Version { get; set; } = "v5.12.1";

/// <summary>
/// 全局配置项
Expand Down

0 comments on commit eed509c

Please sign in to comment.