Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cybertron
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
0
Merge Requests
0
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
alpha
cybertron
Commits
9fa57722
Commit
9fa57722
authored
Apr 23, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
8efe5979
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
27 deletions
+21
-27
workspace.xml
.idea/workspace.xml
+0
-0
offline_comment.py
offline_comment.py
+1
-10
testss.py
testss.py
+20
-17
No files found.
.idea/workspace.xml
View file @
9fa57722
This diff is collapsed.
Click to expand it.
offline_comment.py
View file @
9fa57722
...
...
@@ -10,15 +10,6 @@ from auto_request import host, user, db, passwd
auto_reply_url
=
"http://47.93.162.11:8085/api/v1/reply/create_for_inner"
# 对所有马甲生产的帖子(包含历史帖子)
#
# 离线一次性插入{0,4}条评论
#
# 评论取自评论库,并自动随机关联马甲
#
# 注意需要禁止本帖作者评论
def
reply
(
id
,
content
,
user_id
):
try
:
post_dict
=
{
...
...
@@ -84,7 +75,7 @@ if __name__ == "__main__":
for
id
in
topic_id
:
rand_num
=
random
.
randint
(
0
,
4
)
rand_num
=
random
.
randint
(
0
,
3
)
for
i
in
range
(
rand_num
):
...
...
testss.py
View file @
9fa57722
import
datetime
now
=
datetime
.
datetime
.
now
()
yes_time
=
now
-
datetime
.
timedelta
(
days
=
2
)
yes_time_str
=
yes_time
.
strftime
(
'
%
Y-
%
m-
%
d'
)
yes_time_str
=
yes_time_str
+
' 23:59:59.000000'
yes_time2
=
now
-
datetime
.
timedelta
(
days
=
0
)
yes_time_str2
=
yes_time2
.
strftime
(
'
%
Y-
%
m-
%
d'
)
yes_time_str2
=
yes_time_str2
+
' 00:00:00.000000'
print
(
yes_time_str
)
print
(
yes_time_str2
)
\ No newline at end of file
#
#
# import datetime
#
# now = datetime.datetime.now()
#
# yes_time = now - datetime.timedelta(days=2)
# yes_time_str = yes_time.strftime('%Y-%m-%d')
# yes_time_str = yes_time_str+' 23:59:59.000000'
#
# yes_time2 = now - datetime.timedelta(days=0)
# yes_time_str2 = yes_time2.strftime('%Y-%m-%d')
# yes_time_str2 = yes_time_str2+' 00:00:00.000000'
#
# print(yes_time_str)
# print(yes_time_str2)
import
random
rand_num
=
random
.
randint
(
0
,
2
)
print
(
rand_num
)
\ No newline at end of file
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