Commit 9abe03a7 authored by lixiaofang's avatar lixiaofang

add log

parent 773226ef
...@@ -97,10 +97,10 @@ def comment(card_info): ...@@ -97,10 +97,10 @@ def comment(card_info):
comment_num = redis_data["comment"] comment_num = redis_data["comment"]
###判断一下如果评论为空就重新拿一个 ###判断一下如果评论为空就重新拿一个
if not card_info['comment_content']: if not card_info['comment_content']:
logging.info("ID下的评论是空的,需要重复赋值评论:%s" % card_info) logging.info("ID下的评论是空的,需要重复赋值评论:%s" % card_info)
comment = get_vest_userid_and_comment(need_comment_num=1, tag_names=card_info['tag_name'])[0] comment = get_vest_userid_and_comment(need_comment_num=1, tag_names=card_info['tag_names'])[0]
card_info['comment_content'] = comment card_info['comment_content'] = comment
logging.info("ID下的评论是空的,需要重复赋值评论:%s" % card_info) logging.info("ID下的评论是空的,需要重复赋值评论:%s" % card_info)
####在这里做判断 一天不能超过12个 如果超过二十个不下发 不超过二十个下发对应的灌水功能 ####在这里做判断 一天不能超过12个 如果超过二十个不下发 不超过二十个下发对应的灌水功能
if comment_num > 12: if comment_num > 12:
......
...@@ -45,7 +45,7 @@ def vest_irrigation(card_id=0, card_type=None, card_user_id=None, create_time="" ...@@ -45,7 +45,7 @@ def vest_irrigation(card_id=0, card_type=None, card_user_id=None, create_time=""
'card_status': card_type, 'card_status': card_type,
"create_time": create_time, "create_time": create_time,
"content_level": content_level, "content_level": content_level,
"tag_names": tag_names, "c": tag_names,
"type": "get_write_answer_userinfo", "type": "get_write_answer_userinfo",
"current_push_time": create_time, "current_push_time": create_time,
'action_type': 'comment' 'action_type': 'comment'
......
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