Commit 1c526821 authored by lixiaofang's avatar lixiaofang

判断是否下发

parent 9a30bd12
......@@ -22,7 +22,7 @@ def click(card_info):
redis_client.expire(key, time=24 * 60 * 60)
logging.info("get action:click,card_id:%s,redis_data:%s" % (card_info['id'], redis_data))
click_num = redis_data["click"]
if click_num > 20:
if click_num > 10:
send_email_tome(str(redis_data) + str(card_info))
else:
rpc_invoker = get_rpc_invoker()
......
......@@ -24,7 +24,7 @@ def follow(card_info):
follow_num = redis_data["follow"]
if follow_num > 20:
if follow_num > 10:
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