Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
07b0bd2a
Commit
07b0bd2a
authored
Aug 10, 2022
by
284718418@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
华颐合并至8小时
parent
6e20112a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/main/java/cn/timer/api/controller/LoginController.java
+1
-1
src/main/java/cn/timer/api/controller/qyxx/CmsController.java
+3
-1
No files found.
src/main/java/cn/timer/api/controller/LoginController.java
View file @
07b0bd2a
...
@@ -222,7 +222,7 @@ public class LoginController {
...
@@ -222,7 +222,7 @@ public class LoginController {
// 6位随机数验证码
// 6位随机数验证码
try
{
try
{
Integer
code
=
(
int
)
((
Math
.
random
()
*
9
+
1
)
*
100000
);
//
Integer code = (int) ((Math.random() * 9 + 1) * 100000);
if
(
phone
==
null
||
""
.
equals
(
phone
))
{
if
(
phone
==
null
||
""
.
equals
(
phone
))
{
phone
=
entRegisterDto
.
getUsername
();
phone
=
entRegisterDto
.
getUsername
();
...
...
src/main/java/cn/timer/api/controller/qyxx/CmsController.java
View file @
07b0bd2a
...
@@ -4,9 +4,11 @@ import java.util.*;
...
@@ -4,9 +4,11 @@ import java.util.*;
import
cn.timer.api.bean.qyxx.*
;
import
cn.timer.api.bean.qyxx.*
;
import
cn.timer.api.dto.qyxx.CmsContentReadDto
;
import
cn.timer.api.dto.qyxx.CmsContentReadDto
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.yulichang.query.MPJQueryWrapper
;
import
com.github.yulichang.query.MPJQueryWrapper
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
net.sf.json.JSONArray
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -698,7 +700,7 @@ public class CmsController {
...
@@ -698,7 +700,7 @@ public class CmsController {
QueryWrapper
<
CmsContent
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
CmsContent
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"id"
,
cmsContentId
);
queryWrapper
.
eq
(
"id"
,
cmsContentId
);
CmsContent
cmsContent
=
CmsContent
.
builder
().
build
().
selectOne
(
queryWrapper
);
CmsContent
cmsContent
=
CmsContent
.
builder
().
build
().
selectOne
(
queryWrapper
);
JSONArray
addjsonArray
=
JSONArray
.
fromObject
(
request
.
getString
(
"filepathcms"
));
JSONArray
addjsonArray
=
JSONArray
.
fromObject
(
request
.
getString
(
"filepathcms"
));
JSONArray
resjsonArray
=
JSONArray
.
fromObject
(
cmsContent
.
getFilepath
());
JSONArray
resjsonArray
=
JSONArray
.
fromObject
(
cmsContent
.
getFilepath
());
resjsonArray
.
addAll
(
addjsonArray
);
resjsonArray
.
addAll
(
addjsonArray
);
cmsContent
.
setFilepath
(
resjsonArray
.
toString
());
cmsContent
.
setFilepath
(
resjsonArray
.
toString
());
...
...
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