Commit 83b26d6b by 吴迪

【修改】渗透修改

parent c0b721e1
......@@ -6,7 +6,6 @@ import io.office.common.annotation.SysLog;
import io.office.common.utils.PageUtils;
import io.office.common.utils.R;
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.service.NewsMovieService;
import io.office.modules.manage.vo.request.NewsMovieEntityVo;
......@@ -23,7 +22,6 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Arrays;
import java.util.List;
......@@ -134,8 +132,8 @@ public class NewsMovieController extends AbstractController {
SysUserEntity user = getUser();
NewsMovieEntity newsMovieEntity = new NewsMovieEntity();
newsMovieEntity.setAuditor(user.getUsername());
BeanUtils.copyProperties(newsMovieEntityVo, newsMovieEntity);
newsMovieEntity.setAuditor(user.getUsername());
QueryWrapper<NewsMovieEntity> newsMovieEntityQueryWrapper = new QueryWrapper<>();
newsMovieEntityQueryWrapper.eq("id", newsMovieEntityVo.getId());
newsMovieService.update(newsMovieEntity, newsMovieEntityQueryWrapper);
......
......@@ -108,7 +108,7 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
//查询Member表
MemberEntity memberEntity = memberDao.selectByName(userName);
if (memberEntity == null) {
throw new RRException("用户不存在!");
throw new RRException("用户名或密码错误!");
}
id = Long.valueOf(memberEntity.getId());
//用户类型 www:为官网用户 条码卡:为条码卡用户
......@@ -135,7 +135,7 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
}
MemberEntity user = memberDao.selectByName(userName);
if (user == null) {
throw new RRException("用户不存在!");
throw new RRException("用户名或密码错误!");
}
phone = user.getPhone();
String password = user.getPass();
......@@ -228,7 +228,7 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
//查询Member表
MemberEntity memberEntity = memberDao.selectByName(userName);
if (memberEntity == null) {
throw new RRException("用户不存在!");
throw new RRException("用户名或密码错误!");
}
if (StringUtils.isNotBlank(memberEntity.getPhone())) {
phone = memberEntity.getPhone();
......@@ -318,4 +318,4 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
System.out.println(DESUtils.byteToHexString(DESUtils.DES_CBC_Encrypt("GS1_20201013".getBytes(), DESUtils.Key.getBytes())));
}
}
\ No newline at end of file
}
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.utils.PageUtils;
import io.office.common.utils.Query;
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.utils.*;
import org.apache.commons.httpclient.NameValuePair;
import io.office.modules.manage.entity.TimescodeFindpsEntity;
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.DocumentException;
import org.dom4j.DocumentHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import javax.mail.Session;
import java.util.Map;
import java.util.Properties;
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")
public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao, TimescodeFindpsEntity> implements TimescodeFindpsService {
......@@ -64,7 +59,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao,
throw new RRException("请输入手机号!");
}
if ("admin".equals(userName)){ //管理员不能修改密码
throw new RRException("用户名不存在!");
throw new RRException("用户名或密码错误!");
}
MemberEntity memberEntity = memberDao.selectByName(userName);
if (memberEntity!=null){
......@@ -132,7 +127,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao,
throw new RRException("手机号输入错误!");
}
}else {
throw new RRException("用户名不存在!");
throw new RRException("用户名或密码错误!");
}
} catch (RRException e) {
e.printStackTrace();
......@@ -157,7 +152,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao,
throw new RRException("请输入邮箱!");
}
if ("admin".equals(userName)){ //管理员不能修改密码
throw new RRException("用户名不存在!");
throw new RRException("用户名或密码错误!");
}
MemberEntity memberEntity = memberDao.selectByName(userName);
if (memberEntity!=null){
......@@ -175,7 +170,7 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao,
throw new RRException("邮箱输入错误!");
}
}else {
throw new RRException("用户名不存在!");
throw new RRException("用户名或密码错误!");
}
} catch (RRException e) {
e.printStackTrace();
......@@ -193,4 +188,4 @@ public class TimescodeFindpsServiceImpl extends ServiceImpl<TimescodeFindpsDao,
}
\ No newline at end of file
}
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