Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
vest
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
rank
vest
Commits
5e3c26b4
Commit
5e3c26b4
authored
Jan 04, 2020
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
a4aa7648
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
click_fun.py
click/views/click_fun.py
+1
-1
comment_fun.py
comment/views/comment_fun.py
+1
-1
follow_fun.py
follow/views/follow_fun.py
+1
-1
No files found.
click/views/click_fun.py
View file @
5e3c26b4
...
...
@@ -31,7 +31,7 @@ def click(card_info):
click_num
=
redis_data
[
"click"
]
if
click_num
>
10
:
return
True
logging
.
info
(
"今天已经消费到最大次数了,不能再消费"
)
# send_email_tome(str(redis_data) + str(card_info))
else
:
rpc_invoker
=
get_rpc_invoker
()
...
...
comment/views/comment_fun.py
View file @
5e3c26b4
...
...
@@ -101,7 +101,7 @@ def comment(card_info):
card_info
[
'comment_content'
]
=
comment
####在这里做判断 一天不能超过12个 如果超过二十个不下发 不超过二十个下发对应的灌水功能
if
comment_num
>
12
:
return
True
logging
.
info
(
"今天已经消费到最大次数了,不能再消费"
)
# send_email_tome(str(redis_data) + str(card_info))
else
:
rpc_invoker
=
get_rpc_invoker
()
...
...
follow/views/follow_fun.py
View file @
5e3c26b4
...
...
@@ -28,7 +28,7 @@ def follow(card_info):
follow_num
=
redis_data
[
"follow"
]
if
follow_num
>
10
:
return
True
logging
.
info
(
"今天已经消费到最大次数了,不能再消费"
)
# send_email_tome(str(redis_data) + str(card_info))
else
:
rpc_invoker
=
get_rpc_invoker
()
...
...
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