Result OK(String msg)方法会造成兼容性问题 issues/I4IP3D issues/3195

pull/3283/head
zhangdaiscott 2021-11-22 15:13:59 +08:00
parent 80601e0ccd
commit 509be1e382
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ public class Result<T> implements Serializable {
r.setSuccess(true);
r.setCode(CommonConstant.SC_OK_200);
r.setMessage(msg);
//Result OK(String msg)方法会造成兼容性问题 issues/I4IP3D
r.setResult((T) msg);
return r;
}