Commit c0e7e75b authored by lixiaofang's avatar lixiaofang

add url

parent ec2358c2
......@@ -42,14 +42,14 @@
<entry key="comment" value="59" />
<entry key="dummy" value="6" />
<entry key="guanshui" value="2" />
<entry key="py" value="2994" />
<entry key="py" value="3003" />
<entry key="xuqiu" value="223" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="PLAIN_TEXT" value="290" />
<entry key="Python" value="2994" />
<entry key="Python" value="3003" />
</counts>
</usages-collector>
</session>
......@@ -120,8 +120,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_at_once.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="105">
<caret line="7" selection-start-line="7" selection-end-line="7" selection-end-column="26" />
<state>
<caret column="15" lean-forward="true" selection-start-column="15" selection-end-column="15" />
</state>
</provider>
</entry>
......@@ -129,8 +129,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/offline_comment.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="519">
<caret line="94" column="24" selection-start-line="94" selection-start-column="24" selection-end-line="94" selection-end-column="24" />
<state relative-caret-position="240">
<caret line="16" column="1" lean-forward="true" selection-start-line="16" selection-start-column="1" selection-end-line="16" selection-end-column="1" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
......@@ -170,8 +170,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/auto_request.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="88">
<caret line="112" selection-start-line="112" selection-end-line="128" />
<state relative-caret-position="180">
<caret line="12" column="43" selection-start-line="12" selection-start-column="25" selection-end-line="12" selection-end-column="43" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
......@@ -487,7 +487,6 @@
</component>
<component name="ToolWindowManager">
<frame x="-322" y="-1080" width="1920" height="1080" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Structure" order="0" sideWeight="0.21188119" side_tool="true" weight="0.19112115" />
<window_info id="Favorites" order="1" side_tool="true" />
......@@ -501,7 +500,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<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.21865284" />
<window_info active="true" anchor="bottom" id="Terminal" order="8" visible="true" weight="0.18549223" />
<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="DB Execution Console" order="11" />
......@@ -891,15 +890,15 @@
</entry>
<entry file="file://$PROJECT_DIR$/auto_at_once.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="105">
<caret line="7" selection-start-line="7" selection-end-line="7" selection-end-column="26" />
<state>
<caret column="15" lean-forward="true" selection-start-column="15" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/auto_request.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="88">
<caret line="112" selection-start-line="112" selection-end-line="128" />
<state relative-caret-position="180">
<caret line="12" column="43" selection-start-line="12" selection-start-column="25" selection-end-line="12" selection-end-column="43" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
......@@ -908,8 +907,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/offline_comment.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="519">
<caret line="94" column="24" selection-start-line="94" selection-start-column="24" selection-end-line="94" selection-end-column="24" />
<state relative-caret-position="240">
<caret line="16" column="1" lean-forward="true" selection-start-line="16" selection-start-column="1" selection-end-line="16" selection-end-column="1" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
......
......@@ -7,10 +7,10 @@ import pandas as pd
import traceback
from log_settings import *
import logging
from auto_request import login, reply, get_offline_comment, time_convs
from auto_request import get_offline_comment
from auto_request import host, user, db, passwd
auto_reply_url = "http://api/v1/reply/create_for_inner"
auto_reply_url = "http://47.93.162.11:8085/api/v1/reply/create_for_inner"
# 对所有马甲生产的帖子(包含历史帖子)
......@@ -21,6 +21,7 @@ auto_reply_url = "http://api/v1/reply/create_for_inner"
#
# 注意需要禁止本帖作者评论
def reply(id, content, user_id):
try:
post_dict = {
......@@ -92,6 +93,7 @@ if __name__ == "__main__":
comment_list = get_offline_comment()
for i in range(rand_num):
comment = comment_list[i]
reply(id[0], comment, user_id, )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment