Commit 51c7da6e authored by lixiaofang's avatar lixiaofang

add

parent fdcf5e31
...@@ -110,7 +110,7 @@ def get_cookies(user_id): ...@@ -110,7 +110,7 @@ def get_cookies(user_id):
return json.loads(data) return json.loads(data)
except: except:
logging.error("catch exception,get_majia:%s" % traceback.format_exc())
return None return None
...@@ -118,6 +118,7 @@ def login(): ...@@ -118,6 +118,7 @@ def login():
try: try:
user_id = get_majia() user_id = get_majia()
logging.info("get user_id:%s" % user_id)
cookies = get_cookies(user_id) cookies = get_cookies(user_id)
if cookies is not None: if cookies is not None:
......
...@@ -4,8 +4,8 @@ import logging ...@@ -4,8 +4,8 @@ import logging
import json import json
from libs.cache import redis_client from libs.cache import redis_client
login_url = "http://earth.iyanzhi.com/api/account/login_pwd" # login_url = "http://earth.iyanzhi.com/api/account/login_pwd"
login_url = "http://earth.gmapp.env/api/account/login_pwd"
def index_first(): def index_first():
try: try:
......
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