Commit 0f5869a6 authored by 唐峰's avatar 唐峰

Merge branch 'feature-tob-20230809' of git.quantgroup.cn:head_group/xyqb-user2...

Merge branch 'feature-tob-20230809' of git.quantgroup.cn:head_group/xyqb-user2 into feature-tob-20230809
parents bf2e6661 edd9a3cf
......@@ -48,7 +48,7 @@ public class UserInfoEntityApiV2Controller implements IBaseController {
@Transactional
public JsonResult<UserInfoEntity> token(@RequestBody UserInfoEntityReq req) {
if (UserInfoEntityReq.checkParam(req)) {
if (!UserInfoEntityReq.checkParam(req)) {
return JsonResult.buildErrorStateResult(BizExceptionEnum.ERROR_PARAM.getMsg(), null);
}
......
......@@ -40,13 +40,7 @@ public class UserInfoEntityReq {
public static boolean checkParam(UserInfoEntityReq req) {
if (req == null || req.getUserId() == null ||
(StringUtils.isEmpty(req.getBirthday())
&& StringUtils.isEmpty(req.getEmail())
&& StringUtils.isEmpty(req.getQq())
&& StringUtils.isEmpty(req.getName())
&& StringUtils.isEmpty(req.getNickName())
&& StringUtils.isEmpty(req.getPhoto())
&& req.getGender() == null)) {
(StringUtils.isEmpty(req.getNickName()) && StringUtils.isEmpty(req.getPhoto()))) {
return false;
}
......
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