eprolo-cli 1.0.113 → 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 +2 -2
- 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
|
|
@@ -384,8 +385,7 @@ Credential file (~/.eprolo-toolkit/config.json):
|
|
|
384
385
|
|
|
385
386
|
async function main() {
|
|
386
387
|
const argv = process.argv.slice(2);
|
|
387
|
-
|
|
388
|
-
if (!group || args.help || args.h) {
|
|
388
|
+
if (argv[0] === "help") {
|
|
389
389
|
printHelp();
|
|
390
390
|
return;
|
|
391
391
|
}
|
package/package.json
CHANGED