|
@@ -95,8 +95,16 @@ class AuthorLimit(object):
|
|
if self.mode == "author":
|
|
if self.mode == "author":
|
|
tag = self.find_tag(user_id)
|
|
tag = self.find_tag(user_id)
|
|
if tag:
|
|
if tag:
|
|
- if RedisClient().connect():
|
|
|
|
- tag_count = RedisClient().select(tag)
|
|
|
|
|
|
+ AliyunLogger.logging(
|
|
|
|
+ code="8807",
|
|
|
|
+ platform=self.platform,
|
|
|
|
+ mode=self.mode,
|
|
|
|
+ env="prod",
|
|
|
|
+ message="找到个人账号,{}".format(tag)
|
|
|
|
+ )
|
|
|
|
+ R = RedisClient()
|
|
|
|
+ if R.connect():
|
|
|
|
+ tag_count = R.select(tag)
|
|
if tag_count:
|
|
if tag_count:
|
|
tag_count = int(tag_count.decode("utf-8"))
|
|
tag_count = int(tag_count.decode("utf-8"))
|
|
if tag_count <= 300:
|
|
if tag_count <= 300:
|