Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
83b26d6b
Commit
83b26d6b
authored
Jul 17, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】渗透修改
parent
c0b721e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
32 deletions
+23
-32
NewsMovieController.java
...office/modules/manage/controller/NewsMovieController.java
+1
-3
LogLoginServiceImpl.java
...fice/modules/manage/service/impl/LogLoginServiceImpl.java
+4
-5
TimescodeFindpsServiceImpl.java
...dules/manage/service/impl/TimescodeFindpsServiceImpl.java
+18
-24
No files found.
src/main/java/io/office/modules/manage/controller/NewsMovieController.java
View file @
83b26d6b
...
...
@@ -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
);
...
...
src/main/java/io/office/modules/manage/service/impl/LogLoginServiceImpl.java
View file @
83b26d6b
...
...
@@ -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
}
src/main/java/io/office/modules/manage/service/impl/TimescodeFindpsServiceImpl.java
View file @
83b26d6b
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
java
x.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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment