Commit ded4cc66 by yangfangfang

B端订单

parent ebe485ab
......@@ -172,26 +172,26 @@ public class RevenueAndExpenditureTools extends XMBaseTest {
dataApi.doRequest(RequestType.JSON, dataparams, jsonObject.toJSONString(), dataheadrs).assetsSuccess(true);
JSONObject response = dataApi.getBodyInJSON();
String resourceId = XMJSONPath.readPath(response, "$.result.resourceId");
String accessId = XMJSONPath.readPath(response, "$.result.accessId");
String policy = XMJSONPath.readPath(response, "$.result.policy");
String signature = XMJSONPath.readPath(response, "$.result.signature");
String key = XMJSONPath.readPath(response, "$.result.key");
String callback = XMJSONPath.readPath(response, "$.result.callback");
String host = XMJSONPath.readPath(response, "$.result.host");
InputStream inputStream = new FileInputStream(filePath);
SignatureVO signatureVO = new SignatureVO();
signatureVO.setAccessId(accessId);
signatureVO.setPolicy(policy);
signatureVO.setCallback(callback);
signatureVO.setKey(key);
signatureVO.setSignature(signature);
signatureVO.setHost(host);
signatureVO.setResourceId(Long.valueOf(resourceId));
ResourceUtil.uploadFile(inputStream, filePath, signatureVO, 5000);
// String resourceId = XMJSONPath.readPath(response, "$.result.resourceId");
// String accessId = XMJSONPath.readPath(response, "$.result.accessId");
// String policy = XMJSONPath.readPath(response, "$.result.policy");
// String signature = XMJSONPath.readPath(response, "$.result.signature");
// String key = XMJSONPath.readPath(response, "$.result.key");
// String callback = XMJSONPath.readPath(response, "$.result.callback");
// String host = XMJSONPath.readPath(response, "$.result.host");
//
//
// InputStream inputStream = new FileInputStream(filePath);
// SignatureVO signatureVO = new SignatureVO();
// signatureVO.setAccessId(accessId);
// signatureVO.setPolicy(policy);
// signatureVO.setCallback(callback);
// signatureVO.setKey(key);
// signatureVO.setSignature(signature);
// signatureVO.setHost(host);
// signatureVO.setResourceId(Long.valueOf(resourceId));
//
// ResourceUtil.uploadFile(inputStream, filePath, signatureVO, 5000);
return response;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment