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
f513b1ea
Commit
f513b1ea
authored
Dec 26, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Plain Diff
修日志
parents
5c0494e4
0eea5e38
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
9 deletions
+3
-9
auto_click.py
click/views/auto_click.py
+0
-1
auto_comment.py
comment/views/auto_comment.py
+2
-4
auto_follow.py
follow/views/auto_follow.py
+0
-2
irrigation.py
moment/views/irrigation.py
+1
-0
process_time.py
moment/views/process_time.py
+0
-2
No files found.
click/views/auto_click.py
View file @
f513b1ea
...
...
@@ -82,7 +82,6 @@ def auto_click_user(card_info, after_day=False):
else
:
# 代表还有push好的时间没有下发完成 需要继续使用这些
logging
.
info
(
"get--------click--------------card_info:
%
s"
%
card_info
)
current_user_id
=
card_info
[
"current_user_id"
]
card_info
[
"all_follow_id"
]
.
remove
(
current_user_id
)
current_push_time
=
card_info
[
'current_push_time'
]
...
...
comment/views/auto_comment.py
View file @
f513b1ea
...
...
@@ -94,10 +94,8 @@ def auto_comment_user(card_info, after_day=False):
break
repeat_time
+=
1
logging
.
info
(
"get have_get_after__time:
%
s"
%
card_info
)
logging
.
info
(
"get
comment_
have_get_after__time:
%
s"
%
card_info
)
else
:
# 代表还有push好的时间没有下发完成 需要继续使用这些
logging
.
info
(
"get-------comment---------------card_info:
%
s"
%
card_info
)
current_user_id
=
card_info
[
"current_user_id"
]
card_info
[
"all_follow_id"
]
.
remove
(
current_user_id
)
current_push_time
=
card_info
[
'current_push_time'
]
...
...
@@ -109,7 +107,7 @@ def auto_comment_user(card_info, after_day=False):
if
len
(
card_info
[
"all_content"
])
>
0
:
card_info
[
"comment_content"
]
=
card_info
[
"all_content"
][
0
]
if
len
(
card_info
[
"all_follow_id"
])
>
0
:
card_info
[
"current_user_id"
]
=
card_info
[
"all_follow_id"
][
0
]
...
...
follow/views/auto_follow.py
View file @
f513b1ea
...
...
@@ -100,8 +100,6 @@ def auto_follow_user(card_info, after_day=False):
save_data_to_kafka
(
card_info
)
# 存储数据
logging
.
info
(
"get-----follow----card_info:
%
s"
%
card_info
)
except
:
logging_exception
()
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
moment/views/irrigation.py
View file @
f513b1ea
...
...
@@ -17,6 +17,7 @@ def vest_irrigation(card_id=0, card_type=None, card_user_id=None, create_time=""
try
:
producer
=
KafkaProducer
(
bootstrap_servers
=
[
settings
.
KAFKA_BROKER_LIST
])
logging
.
info
(
"-----------------------------------------------"
)
topic
=
settings
.
KAFKA_TOPIC_NAME
tag_list
=
[
"瘦脸针kyc"
,
"双眼皮kyc"
,
"水光针kyc"
,
"玻尿酸kyc"
,
"吸脂kyc"
,
"祛痘kyc"
,
"鼻综合kyc"
,
"光子嫩肤kyc"
,
"没有想法kyc"
,
"牙齿kyc"
,
"抗衰紧致kyc"
,
"胸部kyc"
,
"果酸换肤kyc"
,
"祛斑kyc"
,
"美白针kyc"
,
"瘦腿针kyc"
]
...
...
moment/views/process_time.py
View file @
f513b1ea
...
...
@@ -209,8 +209,6 @@ def get_click_follow_time_by_create_time(create_time="", content_level=0, action
if
num_days
==
0
:
get_time
=
randomDate
(
create_time
=
createt
,
action_type
=
action_type
)
logging
.
info
(
"拿到当天的时间 get get_time:
%
s"
%
get_time
)
return
get_time
,
0
elif
num_days
==
1
:
...
...
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