履约表日期调整
This commit is contained in:
@@ -76,7 +76,7 @@ def read_instances(token, formUuid, page, n):
|
||||
api = f'https://api.dingtalk.com//v1.0/yida/forms/instances/search'
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ def read_delete(token, formInstanceId):
|
||||
api = f'https://api.dingtalk.com//v1.0/yida/forms/instances'
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ def read_new(FORMID,formData):
|
||||
api = f'https://api.dingtalk.com/v1.0/yida/forms/instances'
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": TOKEN
|
||||
}
|
||||
payload = {
|
||||
@@ -141,13 +141,13 @@ def component(FORMID,TOKEN):
|
||||
api = f'https://api.dingtalk.com//v1.0/yida/forms/formFields'
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": TOKEN
|
||||
}
|
||||
payload = {
|
||||
"formUuid" : FORMID,
|
||||
"appType" : "APP_UYZ0KG6L0CCNV80GZ66O",
|
||||
# "formDataJson" : json.dumps(formData, cls=NpEncoder),
|
||||
# "formDataJson" : json.json.dumps(formData, cls=NpEncoder),
|
||||
"systemToken" : "XA966F81JAJOFCVVVKO64E9MIIZV1EWE5SFMKJ2",
|
||||
# "language" : "zh_CN",
|
||||
"userId" : "yida_pub_account"
|
||||
@@ -161,7 +161,7 @@ def initiate_process(TOKEN,formData):
|
||||
api = f'https://api.dingtalk.com//v1.0/yida/processes/instances/start'
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": TOKEN
|
||||
}
|
||||
payload = {
|
||||
@@ -182,7 +182,7 @@ def delete_in_batches(FORMID,TOKEN,ALL_DATA_instance):
|
||||
api = f'https://api.dingtalk.com//v1.0/yida/forms/instances/batchRemove'
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": TOKEN
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@ def delete_in(TOKEN,formInstanceIdList):
|
||||
api = f'https://api.dingtalk.com//v1.0/yida/forms/instances?appType=APP_UYZ0KG6L0CCNV80GZ66O&systemToken=XA966F81JAJOFCVVVKO64E9MIIZV1EWE5SFMKJ2&userId=yida_pub_account&language=zh_CN&formInstanceId={formInstanceIdList}'
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": TOKEN
|
||||
}
|
||||
res = requests.delete(api, headers=headers)
|
||||
@@ -216,7 +216,7 @@ def read_instances_ngv(token, formUuid, page, n,searchField):
|
||||
api = f'https://api.dingtalk.com//v1.0/yida/forms/instances/search'
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
|
||||
@@ -437,7 +437,7 @@ try:
|
||||
yida_api = "https://api.dingtalk.com/v1.0/yida/processes/instances/start"
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
|
||||
@@ -479,7 +479,7 @@ try:
|
||||
yida_api = "https://api.dingtalk.com/v1.0/yida/processes/instances/start"
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
|
||||
@@ -522,7 +522,7 @@ except:
|
||||
yida_api = "https://api.dingtalk.com/v1.0/yida/processes/instances/start"
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
|
||||
@@ -582,7 +582,7 @@ try:
|
||||
yida_api = "https://api.dingtalk.com/v1.0/yida/processes/instances/start"
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Content-Type": "application/json.json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user