Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
physical
Commits
1939c541
Commit
1939c541
authored
5 years ago
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
6c78d5d9
master
deploy/like-prod
deploy/like-stage
deploy/like-test
dev
like-pre/r01
test
1 merge request
!414
Sentry
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
25 deletions
+23
-25
auto_request.py
vest/request/auto_request.py
+23
-25
No files found.
vest/request/auto_request.py
View file @
1939c541
...
@@ -17,10 +17,10 @@ my_sender = 'lixiaofang@igengmei.com'
...
@@ -17,10 +17,10 @@ my_sender = 'lixiaofang@igengmei.com'
my_pass
=
'tg5AVKBB8jLQGBET'
my_pass
=
'tg5AVKBB8jLQGBET'
my_user6
=
"lixiaofang@igengmei.com"
my_user6
=
"lixiaofang@igengmei.com"
auto_click_url
=
"http://earth.gmapp.env/api/v1/like"
#
auto_click_url = "http://earth.gmapp.env/api/v1/like"
auto_reply_url
=
"http://earth.gmapp.env/api/v1/reply/create"
#
auto_reply_url = "http://earth.gmapp.env/api/v1/reply/create"
auto_follow_url
=
"http://earth.gmapp.env/api/v1/follow"
#
auto_follow_url = "http://earth.gmapp.env/api/v1/follow"
auto_urge_url
=
"http://earth.gmapp.env/api/v1/user/urge"
#
auto_urge_url = "http://earth.gmapp.env/api/v1/user/urge"
# DATABASES = {
# DATABASES = {
# 'default': {
# 'default': {
...
@@ -37,25 +37,25 @@ auto_urge_url = "http://earth.gmapp.env/api/v1/user/urge"
...
@@ -37,25 +37,25 @@ auto_urge_url = "http://earth.gmapp.env/api/v1/user/urge"
# }
# }
# }
# }
#
auto_click_url = "http://earth.iyanzhi.com/api/v1/like"
auto_click_url
=
"http://earth.iyanzhi.com/api/v1/like"
#
auto_reply_url = "http://earth.iyanzhi.com/api/v1/reply/create"
auto_reply_url
=
"http://earth.iyanzhi.com/api/v1/reply/create"
#
auto_follow_url = "http://earth.iyanzhi.com/api/v1/follow"
auto_follow_url
=
"http://earth.iyanzhi.com/api/v1/follow"
#
auto_urge_url = "http://earth.iyanzhi.com/api/v1/user/urge"
auto_urge_url
=
"http://earth.iyanzhi.com/api/v1/user/urge"
#
DATABASES = {
DATABASES
=
{
#
'default': {
'default'
:
{
#
'ENGINE': 'django.db.backends.mysql',
'ENGINE'
:
'django.db.backends.mysql'
,
#
'NAME': 'alpha',
'NAME'
:
'alpha'
,
#
'USER': 'work',
'USER'
:
'work'
,
#
'PASSWORD': 'oars152!traipseize738',
'PASSWORD'
:
'oars152!traipseize738'
,
#
'HOST': '172.17.40.136',
'HOST'
:
'172.17.40.136'
,
#
'PORT': '3306',
'PORT'
:
'3306'
,
#
'OPTIONS': {
'OPTIONS'
:
{
#
"init_command": "SET foreign_key_checks = 0;",
"init_command"
:
"SET foreign_key_checks = 0;"
,
#
"charset": "utf8mb4",
"charset"
:
"utf8mb4"
,
#
}
}
#
}
}
#
}
}
host
=
DATABASES
[
'default'
][
'HOST'
]
host
=
DATABASES
[
'default'
][
'HOST'
]
...
@@ -120,7 +120,6 @@ def login():
...
@@ -120,7 +120,6 @@ def login():
logging
.
info
(
"get user_id:
%
s"
%
user_id
)
logging
.
info
(
"get user_id:
%
s"
%
user_id
)
cookies
=
get_cookies
(
user_id
)
cookies
=
get_cookies
(
user_id
)
cookies
=
"vb10zwffyobixhz1m9k8330w48ftnk1n"
if
cookies
is
not
None
:
if
cookies
is
not
None
:
return
{
'sessionid'
:
cookies
}
return
{
'sessionid'
:
cookies
}
...
@@ -134,7 +133,6 @@ def login():
...
@@ -134,7 +133,6 @@ def login():
def
logins
(
user_id
):
def
logins
(
user_id
):
try
:
try
:
cookies
=
get_cookies
(
user_id
)
cookies
=
get_cookies
(
user_id
)
cookies
=
"vb10zwffyobixhz1m9k8330w48ftnk1n"
if
cookies
is
not
None
:
if
cookies
is
not
None
:
return
{
'sessionid'
:
cookies
}
return
{
'sessionid'
:
cookies
}
...
...
This diff is collapsed.
Click to expand it.
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