Commit 511fd39d authored by lixiaofang's avatar lixiaofang

add log

parent 5e3c26b4
......@@ -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("今天已经消费到最大次数了,不能再消费")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment