Commit c4e81fdb authored by macro's avatar macro
Browse files

注册失败返回失败结果

parent e9bf7c1c
......@@ -49,7 +49,7 @@ public class UmsAdminController {
public CommonResult<UmsAdmin> register(@RequestBody UmsAdminParam umsAdminParam, BindingResult result) {
UmsAdmin umsAdmin = adminService.register(umsAdminParam);
if (umsAdmin == null) {
CommonResult.failed();
return CommonResult.failed();
}
return CommonResult.success(umsAdmin);
}
......
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