Skip to content

Commit

Permalink
Result OK(String msg)方法会造成兼容性问题 issues/I4IP3D issues/3195
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangdaiscott committed Nov 22, 2021
1 parent 80601e0 commit 509be1e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public static<T> Result<T> OK(String msg) {
r.setSuccess(true);
r.setCode(CommonConstant.SC_OK_200);
r.setMessage(msg);
//Result OK(String msg)方法会造成兼容性问题 issues/I4IP3D
r.setResult((T) msg);
return r;
}

Expand Down

0 comments on commit 509be1e

Please sign in to comment.