Commit b371fcf7 authored by 吴春's avatar 吴春

1

parent f697c92e
...@@ -166,14 +166,15 @@ namespace Edu.WebApi.Controllers.AI ...@@ -166,14 +166,15 @@ namespace Edu.WebApi.Controllers.AI
{ {
return ApiResult.Failed("当前应用供应商未启用"); return ApiResult.Failed("当前应用供应商未启用");
} }
if (string.IsNullOrWhiteSpace(keyWord))
{
return ApiResult.Failed("请输入关键字");
}
if ((Type == 1 || Type == 3) && string.IsNullOrWhiteSpace(imgUrl)) if ((Type == 1 || Type == 3) && string.IsNullOrWhiteSpace(imgUrl))
{ {
return ApiResult.Failed("请上传图片信息"); return ApiResult.Failed("请上传图片信息");
} }
else if ((Type ==2 || Type == 4) && string.IsNullOrWhiteSpace(keyWord))
{
return ApiResult.Failed("请输入关键字");
}
var basicConfigureModel = new BasicConfigureModel(); var basicConfigureModel = new BasicConfigureModel();
if (!string.IsNullOrWhiteSpace(supplierModel.BasicConfigure)) if (!string.IsNullOrWhiteSpace(supplierModel.BasicConfigure))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment