Skip to content

Commit

Permalink
代码保护
Browse files Browse the repository at this point in the history
  • Loading branch information
ShekiLyu committed Apr 2, 2019
1 parent 3b441ea commit 94066d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lixinger_openapi/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ def query_dataframe(url_suffix, query_params):
if rlt is None:
return_value['msg'] = 'query failed.'
else:
return_value['code'] = rlt['code']
return_value['msg'] = rlt['msg']
if 'code' in rlt.keys():
return_value['code'] = rlt['code']
if 'msg' in rlt.keys():
return_value['msg'] = rlt['msg']
if 'data' in rlt.keys():
return_value['data'] = json_normalize(rlt['data'])
return return_value

0 comments on commit 94066d5

Please sign in to comment.