@@ -69,13 +69,12 @@ def upload_files(files, file_type='png', business_type='DOCUMENT'): |
||
| 69 | 69 |
resp = client.UploadFiles(req) |
| 70 | 70 |
# 输出json格式的字符串回包 |
| 71 | 71 |
# print(resp.to_json_string()) |
| 72 |
- result = resp.to_json_string() |
|
| 73 | 72 |
|
| 74 | 73 |
except TencentCloudSDKException as err: |
| 75 | 74 |
print(err) |
| 76 |
- result = {}
|
|
| 75 |
+ resp = {}
|
|
| 77 | 76 |
|
| 78 |
- return result |
|
| 77 |
+ return resp |
|
| 79 | 78 |
|
| 80 | 79 |
|
| 81 | 80 |
def test_create_flow(): |
@@ -131,13 +130,12 @@ def create_flow(flow_name=None, flow_type=None, approvers=None): |
||
| 131 | 130 |
resp = client.CreateFlow(req) |
| 132 | 131 |
# 输出json格式的字符串回包 |
| 133 | 132 |
# print(resp.to_json_string()) |
| 134 |
- result = resp.to_json_string() |
|
| 135 | 133 |
|
| 136 | 134 |
except TencentCloudSDKException as err: |
| 137 | 135 |
print(err) |
| 138 |
- result = {}
|
|
| 136 |
+ resp = {}
|
|
| 139 | 137 |
|
| 140 |
- return result |
|
| 138 |
+ return resp |
|
| 141 | 139 |
|
| 142 | 140 |
|
| 143 | 141 |
def test_create_document(): |
@@ -201,13 +199,12 @@ def create_document(flow_id=None, form_fields=None): |
||
| 201 | 199 |
resp = client.CreateDocument(req) |
| 202 | 200 |
# 输出json格式的字符串回包 |
| 203 | 201 |
# print(resp.to_json_string()) |
| 204 |
- result = resp.to_json_string() |
|
| 205 | 202 |
|
| 206 | 203 |
except TencentCloudSDKException as err: |
| 207 | 204 |
print(err) |
| 208 |
- result = {}
|
|
| 205 |
+ resp = {}
|
|
| 209 | 206 |
|
| 210 |
- return result |
|
| 207 |
+ return resp |
|
| 211 | 208 |
|
| 212 | 209 |
|
| 213 | 210 |
def test_start_flow(): |
@@ -246,13 +243,12 @@ def start_flow(flow_id=None): |
||
| 246 | 243 |
resp = client.StartFlow(req) |
| 247 | 244 |
# 输出json格式的字符串回包 |
| 248 | 245 |
# print(resp.to_json_string()) |
| 249 |
- result = resp.to_json_string() |
|
| 250 | 246 |
|
| 251 | 247 |
except TencentCloudSDKException as err: |
| 252 | 248 |
print(err) |
| 253 |
- result = {}
|
|
| 249 |
+ resp = {}
|
|
| 254 | 250 |
|
| 255 |
- return result |
|
| 251 |
+ return resp |
|
| 256 | 252 |
|
| 257 | 253 |
|
| 258 | 254 |
def test_create_scheme_url(): |
@@ -302,10 +298,9 @@ def create_scheme_url(flow_id=None, name=None, mobile=None, card_type='ID_CARD', |
||
| 302 | 298 |
resp = client.CreateSchemeUrl(req) |
| 303 | 299 |
# 输出json格式的字符串回包 |
| 304 | 300 |
# print(resp.to_json_string()) |
| 305 |
- result = resp.to_json_string() |
|
| 306 | 301 |
|
| 307 | 302 |
except TencentCloudSDKException as err: |
| 308 | 303 |
print(err) |
| 309 |
- result = {}
|
|
| 304 |
+ resp = {}
|
|
| 310 | 305 |
|
| 311 |
- return result |
|
| 306 |
+ return resp |