|
@@ -20,6 +20,9 @@ DEFAULT_TIMEOUT = 3000
|
|
|
import traceback
|
|
|
import base64
|
|
|
|
|
|
+
|
|
|
+from BaseDataMaintenance.common.Utils import log
|
|
|
+
|
|
|
def getAttachDealInterface(_data,_type,path="",restry=1,kwargs={},url=interface_url,timeout=DEFAULT_TIMEOUT,session=None):
|
|
|
_succeed = False
|
|
|
_html = ""
|
|
@@ -35,6 +38,8 @@ def getAttachDealInterface(_data,_type,path="",restry=1,kwargs={},url=interface_
|
|
|
if len(kwargs.keys())>0:
|
|
|
_json.update(kwargs)
|
|
|
headers = {"Content-Type":"application/json"}
|
|
|
+
|
|
|
+ log(str(_json))
|
|
|
_resp = requests.post(url,data=_json,timeout=timeout,headers=headers)
|
|
|
|
|
|
if _resp.status_code==200:
|