未登录用户不可发帖

上级 df892761
......@@ -86,7 +86,7 @@ public class DynamicServiceImpl implements DynamicService {
log.info("用户:{}发布动态:{}",userAccountId, dynamicVO);
// 获取用户openid
UserAccountSimpleDTO userAccountSimpleDTO = userAppApi.feignGetUserSimpleInfo(userAccountId, request.getHeader(TokenConstant.TOKEN));
if(userAccountSimpleDTO.getPhoneNum()==null){
if(userAccountSimpleDTO.getPhoneNum()==null || "".equals(userAccountSimpleDTO.getPhoneNum())){
return ResultBody.error("请先绑定手机号");
}
// 插入动态基本信息
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论