@tmsfe/tms-core 0.0.118 → 0.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/request.js +2 -2
package/package.json
CHANGED
package/src/request.js
CHANGED
|
@@ -256,7 +256,7 @@ export default class Request {
|
|
|
256
256
|
name: 'content',
|
|
257
257
|
url: this.makeUrl(path),
|
|
258
258
|
filePath,
|
|
259
|
-
formData: sign(requestParam),
|
|
259
|
+
formData: sign(requestParam, this.secretKey),
|
|
260
260
|
header,
|
|
261
261
|
success: resolve,
|
|
262
262
|
fail: reject,
|
|
@@ -297,7 +297,7 @@ export default class Request {
|
|
|
297
297
|
async serialize(path, data = {}) {
|
|
298
298
|
let url = this.makeUrl(path);
|
|
299
299
|
const signData = await composeParam(data, this.withAuth, this.baseParam);
|
|
300
|
-
const signature = sign(signData);
|
|
300
|
+
const signature = sign(signData, this.secretKey);
|
|
301
301
|
const params = [];
|
|
302
302
|
Object.keys(signature).forEach((key) => {
|
|
303
303
|
const val = encodeURIComponent(signature[key]);
|