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
40900766
Commit
40900766
authored
Apr 19, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
93f2f92c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
19 deletions
+22
-19
workspace.xml
.idea/workspace.xml
+12
-10
offline_comment.py
offline_comment.py
+10
-9
No files found.
.idea/workspace.xml
View file @
40900766
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
/>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/offline_comment.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/offline_comment.py"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -40,14 +42,14 @@
...
@@ -40,14 +42,14 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"6"
/>
<entry
key=
"dummy"
value=
"6"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"38
02
"
/>
<entry
key=
"py"
value=
"38
51
"
/>
<entry
key=
"xuqiu"
value=
"223"
/>
<entry
key=
"xuqiu"
value=
"223"
/>
</counts>
</counts>
</usages-collector>
</usages-collector>
<usages-collector
id=
"statistics.file.types.edit"
>
<usages-collector
id=
"statistics.file.types.edit"
>
<counts>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"290"
/>
<entry
key=
"PLAIN_TEXT"
value=
"290"
/>
<entry
key=
"Python"
value=
"38
02
"
/>
<entry
key=
"Python"
value=
"38
51
"
/>
</counts>
</counts>
</usages-collector>
</usages-collector>
</session>
</session>
...
@@ -142,11 +144,11 @@
...
@@ -142,11 +144,11 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/offline_comment.py"
>
<entry
file=
"file://$PROJECT_DIR$/offline_comment.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
87
"
>
<state
relative-caret-position=
"
-242
"
>
<caret
line=
"
53"
column=
"22"
selection-start-line=
"53"
selection-start-column=
"22"
selection-end-line=
"53"
selection-end-column=
"35
"
/>
<caret
line=
"
33"
lean-forward=
"true"
selection-start-line=
"33"
selection-end-line=
"33
"
/>
<folding>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<marker
date=
"1555665
196000"
expanded=
"true"
signature=
"1855:2008
"
ph=
"..."
/>
<marker
date=
"1555665
572000"
expanded=
"true"
signature=
"1993:1996
"
ph=
"..."
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
@@ -509,7 +511,7 @@
...
@@ -509,7 +511,7 @@
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.
3295082
"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.
0
"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"9"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"9"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
...
@@ -928,11 +930,11 @@
...
@@ -928,11 +930,11 @@
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/offline_comment.py"
>
<entry
file=
"file://$PROJECT_DIR$/offline_comment.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
87
"
>
<state
relative-caret-position=
"
-242
"
>
<caret
line=
"
53"
column=
"22"
selection-start-line=
"53"
selection-start-column=
"22"
selection-end-line=
"53"
selection-end-column=
"35
"
/>
<caret
line=
"
33"
lean-forward=
"true"
selection-start-line=
"33"
selection-end-line=
"33
"
/>
<folding>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<marker
date=
"1555665
196000"
expanded=
"true"
signature=
"1855:2008
"
ph=
"..."
/>
<marker
date=
"1555665
572000"
expanded=
"true"
signature=
"1993:1996
"
ph=
"..."
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
...
offline_comment.py
View file @
40900766
...
@@ -21,6 +21,16 @@ auto_reply_url = "http://47.93.162.11:8085/api/v1/reply/create_for_inner"
...
@@ -21,6 +21,16 @@ auto_reply_url = "http://47.93.162.11:8085/api/v1/reply/create_for_inner"
#
#
# 注意需要禁止本帖作者评论
# 注意需要禁止本帖作者评论
def
get_user_id
():
user_data
=
open
(
"user_id.txt"
,
"r"
)
user_list
=
[]
for
i
in
user_data
.
readlines
():
user_list
.
append
(
i
.
strip
())
return
user_list
def
reply
(
id
,
content
,
user_id
):
def
reply
(
id
,
content
,
user_id
):
try
:
try
:
...
@@ -70,15 +80,6 @@ def get_data(num1, num2):
...
@@ -70,15 +80,6 @@ def get_data(num1, num2):
return
None
return
None
def
get_user_id
():
user_data
=
open
(
"user_id.txt"
,
"r"
)
user_list
=
[]
for
i
in
user_data
.
readlines
():
user_list
.
append
(
i
)
return
user_list
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
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