Commit d4281fbf authored by lvshibao's avatar lvshibao

获取see_web返回的用户信息

parent a35c0eaf
...@@ -32,7 +32,7 @@ def get_account_info(func): ...@@ -32,7 +32,7 @@ def get_account_info(func):
@wraps(func) @wraps(func)
def account_info(obj, req: Request, *args, **kw): def account_info(obj, req: Request, *args, **kw):
logger.info('req中的data为: ' + json.dumps(req.COOKIES)) logger.info('req中的data为: ' + json.dumps(req.COOKIES))
cookie_jar = transfer_cookie(json.dumps(req.COOKIES)) cookie_jar = transfer_cookie(req.COOKIES)
info = requests.get('http://172.17.1.74:8248/getUserInfo', cookies=cookie_jar) info = requests.get('http://172.17.1.74:8248/getUserInfo', cookies=cookie_jar)
# logger.info('req中的query_params为: ', req.query_params) # logger.info('req中的query_params为: ', req.query_params)
logger.info('info中的text为: ' + info.content) logger.info('info中的text为: ' + info.content)
......
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