Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
kmr-h5-java
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
38e9f7bd
authored
2017-12-05 11:13:03 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分享加次数
1 parent
f6312d7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
kmr_dp_HDP/src/main/java/com/example/controller/ScoreLogInfoController.java
kmr_dp_HDP/src/main/java/com/example/service/ScoreLogInfoServiceImpl.java
kmr_dp_HDP/src/main/java/com/example/controller/ScoreLogInfoController.java
View file @
38e9f7b
...
...
@@ -53,7 +53,7 @@ public class ScoreLogInfoController {
String
access_token
,
String
state
,
String
timestamp
,
String
rands
,
String
jsondata
,
String
checksum
,
String
secret
,
String
sign
,
String
signTime
)
throws
ParseException
,
UnsupportedEncodingException
{
MessageEntity
.
Builder
builder
=
new
MessageEntity
.
Builder
(
request
);
if
(
scoreLogInfo
.
getScore
()
<
4
000
)
{
if
(
scoreLogInfo
.
getScore
()
<
3
000
)
{
return
null
;
}
if
(
scoreLogInfo
.
getScore
()
>
30000
)
{
...
...
kmr_dp_HDP/src/main/java/com/example/service/ScoreLogInfoServiceImpl.java
View file @
38e9f7b
...
...
@@ -32,6 +32,9 @@ public class ScoreLogInfoServiceImpl implements ScoreLogInfoService {
@Autowired
private
ShareLogMapper
shareLogMapper
;
@Autowired
private
ScoreLogInfoService
scoreLogInfoService
;
@Override
public
String
save
(
ScoreLogInfo
scoreLogInfo
)
{
String
code
=
"2000"
;
...
...
@@ -47,7 +50,11 @@ public class ScoreLogInfoServiceImpl implements ScoreLogInfoService {
code
=
"9901"
;
}
else
{
long
count
=
this
.
countToDay
(
scoreLogInfo
.
getOpenid
());
if
(
count
>=
maxTime
){
long
s
=
this
.
scoreLogInfoService
.
shareToday
(
scoreLogInfo
.
getOpenid
());
if
(
s
>
5
)
{
s
=
5
;
}
if
(
count
-
s
>=
maxTime
){
code
=
"9902"
;
}
else
{
Integer
score
=
scoreLogInfo
.
getScore
();
...
...
Please
register
or
sign in
to post a comment