eprolo-cli 1.0.114 → 1.0.115
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/bin/eprolo-cli.js +1 -0
- package/package.json +1 -1
package/bin/eprolo-cli.js
CHANGED
|
@@ -102,6 +102,7 @@ function postJson(url, body, headers = {}, method = "POST") {
|
|
|
102
102
|
async function postJsonWithRetry(url, body, config, method = "POST") {
|
|
103
103
|
let headers = {};
|
|
104
104
|
if (config.apiKey) headers["apiKey"] = `${config.apiKey}`;
|
|
105
|
+
headers["timestamp"] = `${Date.now()}`;
|
|
105
106
|
let result = await postJson(url, body, headers, method);
|
|
106
107
|
if (result.data.code == '-1') {
|
|
107
108
|
// 刷新 token
|
package/package.json
CHANGED