Commit 5e3c26b4 authored by lixiaofang's avatar lixiaofang

add log

parent a4aa7648
......@@ -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()
......
......@@ -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()
......
......@@ -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()
......
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