Commit bf5646da authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-admin-api]: 检验ad的内容。

parent a82af83b
...@@ -52,7 +52,7 @@ public class AdminAdController { ...@@ -52,7 +52,7 @@ public class AdminAdController {
if (StringUtils.isEmpty(name)) { if (StringUtils.isEmpty(name)) {
return ResponseUtil.badArgument(); return ResponseUtil.badArgument();
} }
String content = ad.getName(); String content = ad.getContent();
if (StringUtils.isEmpty(content)) { if (StringUtils.isEmpty(content)) {
return ResponseUtil.badArgument(); return ResponseUtil.badArgument();
} }
......
Supports Markdown
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