Authored by chunhua.zhang

add

... ... @@ -45,7 +45,8 @@ def check_http_status(url, content_type, params, headers = {}):
#ret['message'] = r.text
if r.status_code == requests.codes.ok:
# json code
ret["code"] = r.json()['code']
ret["code"] = r.json()['code']
ret['err'] = ret["code"]
else:
ret["code"] = r.status_code
ret["err"] = r.text
... ...