Commit 1939c541 authored by lixiaofang's avatar lixiaofang

add

parent 6c78d5d9
...@@ -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}
......
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