Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
vest
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
vest
Commits
02a002c7
Commit
02a002c7
authored
Dec 24, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
card_type
parent
95d33ddb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
1 deletion
+7
-1
click_fun.cpython-36.pyc
click/views/__pycache__/click_fun.cpython-36.pyc
+0
-0
comment_fun.cpython-36.pyc
comment/views/__pycache__/comment_fun.cpython-36.pyc
+0
-0
follow_fun.cpython-36.pyc
follow/views/__pycache__/follow_fun.cpython-36.pyc
+0
-0
consum.cpython-36.pyc
moment/views/__pycache__/consum.cpython-36.pyc
+0
-0
consum.py
moment/views/consum.py
+7
-1
No files found.
click/views/__pycache__/click_fun.cpython-36.pyc
View file @
02a002c7
No preview for this file type
comment/views/__pycache__/comment_fun.cpython-36.pyc
View file @
02a002c7
No preview for this file type
follow/views/__pycache__/follow_fun.cpython-36.pyc
View file @
02a002c7
No preview for this file type
moment/views/__pycache__/consum.cpython-36.pyc
View file @
02a002c7
No preview for this file type
moment/views/consum.py
View file @
02a002c7
...
@@ -81,6 +81,8 @@ def kafka_consum(topic_name=None):
...
@@ -81,6 +81,8 @@ def kafka_consum(topic_name=None):
if
'have_comment_number'
in
card_info
and
\
if
'have_comment_number'
in
card_info
and
\
card_info
[
'have_comment_number'
]
<
20
:
card_info
[
'have_comment_number'
]
<
20
:
card_info
[
"have_comment_number"
]
+=
1
card_info
[
"have_comment_number"
]
+=
1
is_success
=
comment
(
card_info
)
logging
.
info
(
"当前ID:
%
s,下发状状态:
%
s"
%
(
card_info
[
"card_id"
],
is_success
))
logging
.
info
(
"get------xiafa------------vestcomment:
%
s"
%
card_info
)
logging
.
info
(
"get------xiafa------------vestcomment:
%
s"
%
card_info
)
# 调完接口后需要再次去拿新的push_time的时间
# 调完接口后需要再次去拿新的push_time的时间
...
@@ -89,6 +91,8 @@ def kafka_consum(topic_name=None):
...
@@ -89,6 +91,8 @@ def kafka_consum(topic_name=None):
elif
action_type
==
"click"
:
# 在这里去调点赞的接口
elif
action_type
==
"click"
:
# 在这里去调点赞的接口
if
'have_click_number'
in
card_info
and
card_info
[
'have_click_number'
]
<
20
:
if
'have_click_number'
in
card_info
and
card_info
[
'have_click_number'
]
<
20
:
card_info
[
"have_click_number"
]
+=
1
card_info
[
"have_click_number"
]
+=
1
is_success
=
click
(
card_info
)
logging
.
info
(
"当前ID:
%
s,下发状状态:
%
s"
%
(
card_info
[
"card_id"
],
is_success
))
logging
.
info
(
"get------xiafa------------vestclick:
%
s"
%
card_info
)
logging
.
info
(
"get------xiafa------------vestclick:
%
s"
%
card_info
)
auto_click_user
(
card_info
)
auto_click_user
(
card_info
)
...
@@ -97,8 +101,10 @@ def kafka_consum(topic_name=None):
...
@@ -97,8 +101,10 @@ def kafka_consum(topic_name=None):
if
'have_follow_number'
in
card_info
and
\
if
'have_follow_number'
in
card_info
and
\
card_info
[
'have_follow_number'
]
<
20
:
card_info
[
'have_follow_number'
]
<
20
:
logging
.
info
(
"get------xiafa------------vestfollow:
%
s"
%
card_info
)
card_info
[
"have_follow_number"
]
+=
1
card_info
[
"have_follow_number"
]
+=
1
is_success
=
follow
(
card_info
)
logging
.
info
(
"当前ID:
%
s,下发状状态:
%
s"
%
(
card_info
[
"card_id"
],
is_success
))
logging
.
info
(
"get------xiafa------------vestfollow:
%
s"
%
card_info
)
auto_follow_user
(
card_info
)
auto_follow_user
(
card_info
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment