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
511fd39d
Commit
511fd39d
authored
Jan 04, 2020
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
5e3c26b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
comment_fun.py
comment/views/comment_fun.py
+3
-0
No files found.
comment/views/comment_fun.py
View file @
511fd39d
...
...
@@ -97,8 +97,11 @@ def comment(card_info):
comment_num
=
redis_data
[
"comment"
]
###判断一下如果评论为空就重新拿一个
if
not
card_info
[
'comment_content'
]:
logging
.
info
(
"改ID下的评论是空的,需要重复赋值评论:
%
s"
%
card_info
)
comment
=
get_vest_userid_and_comment
(
need_comment_num
=
1
,
tag_names
=
card_info
[
'tag_name'
])[
0
]
card_info
[
'comment_content'
]
=
comment
logging
.
info
(
"改ID下的评论是空的,需要重复赋值评论:
%
s"
%
card_info
)
####在这里做判断 一天不能超过12个 如果超过二十个不下发 不超过二十个下发对应的灌水功能
if
comment_num
>
12
:
logging
.
info
(
"今天已经消费到最大次数了,不能再消费"
)
...
...
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