Commit 83b26d6b by 吴迪

【修改】渗透修改

parent c0b721e1
...@@ -6,7 +6,6 @@ import io.office.common.annotation.SysLog; ...@@ -6,7 +6,6 @@ import io.office.common.annotation.SysLog;
import io.office.common.utils.PageUtils; import io.office.common.utils.PageUtils;
import io.office.common.utils.R; import io.office.common.utils.R;
import io.office.modules.manage.entity.NewsMovieEntity; import io.office.modules.manage.entity.NewsMovieEntity;
import io.office.modules.manage.entity.NewtopicEntity;
import io.office.modules.manage.entity.dto.NewsParams; import io.office.modules.manage.entity.dto.NewsParams;
import io.office.modules.manage.service.NewsMovieService; import io.office.modules.manage.service.NewsMovieService;
import io.office.modules.manage.vo.request.NewsMovieEntityVo; import io.office.modules.manage.vo.request.NewsMovieEntityVo;
...@@ -23,7 +22,6 @@ import org.springframework.web.bind.annotation.RequestBody; ...@@ -23,7 +22,6 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.Arrays;
import java.util.List; import java.util.List;
...@@ -134,8 +132,8 @@ public class NewsMovieController extends AbstractController { ...@@ -134,8 +132,8 @@ public class NewsMovieController extends AbstractController {
SysUserEntity user = getUser(); SysUserEntity user = getUser();
NewsMovieEntity newsMovieEntity = new NewsMovieEntity(); NewsMovieEntity newsMovieEntity = new NewsMovieEntity();
newsMovieEntity.setAuditor(user.getUsername());
BeanUtils.copyProperties(newsMovieEntityVo, newsMovieEntity); BeanUtils.copyProperties(newsMovieEntityVo, newsMovieEntity);
newsMovieEntity.setAuditor(user.getUsername());
QueryWrapper<NewsMovieEntity> newsMovieEntityQueryWrapper = new QueryWrapper<>(); QueryWrapper<NewsMovieEntity> newsMovieEntityQueryWrapper = new QueryWrapper<>();
newsMovieEntityQueryWrapper.eq("id", newsMovieEntityVo.getId()); newsMovieEntityQueryWrapper.eq("id", newsMovieEntityVo.getId());
newsMovieService.update(newsMovieEntity, newsMovieEntityQueryWrapper); newsMovieService.update(newsMovieEntity, newsMovieEntityQueryWrapper);
......
...@@ -108,7 +108,7 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity ...@@ -108,7 +108,7 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
//查询Member表 //查询Member表
MemberEntity memberEntity = memberDao.selectByName(userName); MemberEntity memberEntity = memberDao.selectByName(userName);
if (memberEntity == null) { if (memberEntity == null) {
throw new RRException("用户不存在!"); throw new RRException("用户名或密码错误!");
} }
id = Long.valueOf(memberEntity.getId()); id = Long.valueOf(memberEntity.getId());
//用户类型 www:为官网用户 条码卡:为条码卡用户 //用户类型 www:为官网用户 条码卡:为条码卡用户
...@@ -135,7 +135,7 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity ...@@ -135,7 +135,7 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
} }
MemberEntity user = memberDao.selectByName(userName); MemberEntity user = memberDao.selectByName(userName);
if (user == null) { if (user == null) {
throw new RRException("用户不存在!"); throw new RRException("用户名或密码错误!");
} }
phone = user.getPhone(); phone = user.getPhone();
String password = user.getPass(); String password = user.getPass();
...@@ -228,7 +228,7 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity ...@@ -228,7 +228,7 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
//查询Member表 //查询Member表
MemberEntity memberEntity = memberDao.selectByName(userName); MemberEntity memberEntity = memberDao.selectByName(userName);
if (memberEntity == null) { if (memberEntity == null) {
throw new RRException("用户不存在!"); throw new RRException("用户名或密码错误!");
} }
if (StringUtils.isNotBlank(memberEntity.getPhone())) { if (StringUtils.isNotBlank(memberEntity.getPhone())) {
phone = memberEntity.getPhone(); phone = memberEntity.getPhone();
......
package io.office.modules.manage.service.impl; package io.office.modules.manage.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.office.common.exception.RRException; import io.office.common.exception.RRException;
import io.office.common.utils.PageUtils;
import io.office.common.utils.Query;
import io.office.modules.manage.dao.MemberDao; import io.office.modules.manage.dao.MemberDao;
import io.office.modules.manage.dao.TimescodeFindpsDao;
import io.office.modules.manage.entity.MemberEntity; import io.office.modules.manage.entity.MemberEntity;
import io.office.modules.manage.utils.*; import io.office.modules.manage.entity.TimescodeFindpsEntity;
import org.apache.commons.httpclient.NameValuePair; import io.office.modules.manage.service.TimescodeFindpsService;
import io.office.modules.manage.utils.DateUtils;
import io.office.modules.manage.utils.MD5Util;
import io.office.modules.manage.utils.MailUtlis;
import io.office.modules.manage.utils.VerificationCodeUtils;
import org.dom4j.Document; import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper; import org.dom4j.DocumentHelper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Date; import javax.mail.Session;
import java.util.Map; import java.util.Map;
import java.util.Properties; import java.util.Properties;
import java.util.UUID; import java.util.UUID;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.office.common.utils.PageUtils;
import io.office.common.utils.Query;
import io.office.modules.manage.dao.TimescodeFindpsDao;
import io.office.modules.manage.entity.TimescodeFindpsEntity;
import io.office.modules.manage.service.TimescodeFindpsService;
import javax.mail.Session;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
@Service("timescodeFindpsService") @Service("timescodeFindpsService")
public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao, TimescodeFindpsEntity> implements TimescodeFindpsService { public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao, TimescodeFindpsEntity> implements TimescodeFindpsService {
...@@ -64,7 +59,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao, ...@@ -64,7 +59,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao,
throw new RRException("请输入手机号!"); throw new RRException("请输入手机号!");
} }
if ("admin".equals(userName)){ //管理员不能修改密码 if ("admin".equals(userName)){ //管理员不能修改密码
throw new RRException("用户名不存在!"); throw new RRException("用户名或密码错误!");
} }
MemberEntity memberEntity = memberDao.selectByName(userName); MemberEntity memberEntity = memberDao.selectByName(userName);
if (memberEntity!=null){ if (memberEntity!=null){
...@@ -132,7 +127,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao, ...@@ -132,7 +127,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao,
throw new RRException("手机号输入错误!"); throw new RRException("手机号输入错误!");
} }
}else { }else {
throw new RRException("用户名不存在!"); throw new RRException("用户名或密码错误!");
} }
} catch (RRException e) { } catch (RRException e) {
e.printStackTrace(); e.printStackTrace();
...@@ -157,7 +152,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao, ...@@ -157,7 +152,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao,
throw new RRException("请输入邮箱!"); throw new RRException("请输入邮箱!");
} }
if ("admin".equals(userName)){ //管理员不能修改密码 if ("admin".equals(userName)){ //管理员不能修改密码
throw new RRException("用户名不存在!"); throw new RRException("用户名或密码错误!");
} }
MemberEntity memberEntity = memberDao.selectByName(userName); MemberEntity memberEntity = memberDao.selectByName(userName);
if (memberEntity!=null){ if (memberEntity!=null){
...@@ -175,7 +170,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao, ...@@ -175,7 +170,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao,
throw new RRException("邮箱输入错误!"); throw new RRException("邮箱输入错误!");
} }
}else { }else {
throw new RRException("用户名不存在!"); throw new RRException("用户名或密码错误!");
} }
} catch (RRException e) { } catch (RRException e) {
e.printStackTrace(); e.printStackTrace();
......
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