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
2eb8233f
Commit
2eb8233f
authored
Jan 06, 2020
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
162a324a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
click_fun.py
click/views/click_fun.py
+1
-0
comment_fun.py
comment/views/comment_fun.py
+2
-0
follow_fun.py
follow/views/follow_fun.py
+2
-0
No files found.
click/views/click_fun.py
View file @
2eb8233f
...
@@ -32,6 +32,7 @@ def click(card_info):
...
@@ -32,6 +32,7 @@ def click(card_info):
if
click_num
>
10
:
if
click_num
>
10
:
logging
.
info
(
"今天已经消费到最大次数了,不能再消费"
)
logging
.
info
(
"今天已经消费到最大次数了,不能再消费"
)
return
True
,
True
else
:
else
:
rpc_invoker
=
get_rpc_invoker
()
rpc_invoker
=
get_rpc_invoker
()
try
:
try
:
...
...
comment/views/comment_fun.py
View file @
2eb8233f
...
@@ -122,6 +122,8 @@ def comment(card_info):
...
@@ -122,6 +122,8 @@ def comment(card_info):
if
comment_num
>
12
:
if
comment_num
>
12
:
logging
.
info
(
"今天已经消费到最大次数了,不能再消费"
)
logging
.
info
(
"今天已经消费到最大次数了,不能再消费"
)
return
True
,
True
else
:
else
:
rpc_invoker
=
get_rpc_invoker
()
rpc_invoker
=
get_rpc_invoker
()
try
:
try
:
...
...
follow/views/follow_fun.py
View file @
2eb8233f
...
@@ -29,6 +29,8 @@ def follow(card_info):
...
@@ -29,6 +29,8 @@ def follow(card_info):
if
follow_num
>
10
:
if
follow_num
>
10
:
logging
.
info
(
"今天已经消费到最大次数了,不能再消费"
)
logging
.
info
(
"今天已经消费到最大次数了,不能再消费"
)
return
True
,
True
else
:
else
:
rpc_invoker
=
get_rpc_invoker
()
rpc_invoker
=
get_rpc_invoker
()
try
:
try
:
...
...
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