Commit 49c042ed authored by alex yao's avatar alex yao

fix:null

parent 72f0d53f
...@@ -27,6 +27,8 @@ public class PortalRestImpl implements PortalRest { ...@@ -27,6 +27,8 @@ public class PortalRestImpl implements PortalRest {
@Override @Override
public void call(PortalDialoguesDto dto) throws Exception { public void call(PortalDialoguesDto dto) throws Exception {
Assert.notNull(dto, "请求参数不能为空"); Assert.notNull(dto, "请求参数不能为空");
Assert.notBlank(dto.getDialoguesId(),"会话ID不能为空");
Assert.notBlank(dto.getInput(),"对话内容不能为空");
UserBaseEntity userBaseEntity = BlContext.getCurrentUserNotException(); UserBaseEntity userBaseEntity = BlContext.getCurrentUserNotException();
if (ObjectUtil.isEmpty(userBaseEntity)) { if (ObjectUtil.isEmpty(userBaseEntity)) {
throw new BusinessException("用户未登录"); throw new BusinessException("用户未登录");
......
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