Skip to content

Commit 58612a2

Browse files
committed
feat: 调增fake api server
1 parent 7883575 commit 58612a2

File tree

7 files changed

+9
-1
lines changed

7 files changed

+9
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**/
2+
typeof _0x3f8a === 'function' && _0x3f8a({
3+
"status": "success",
4+
"data": "{\"name\":\"User174\",\"age\":32}"
5+
});
File renamed without changes.
File renamed without changes.

jsonp-request-encrypt.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ function registerJsonpRequestEncryptApi(app) {
1515
const callbackName = req.query.callback;
1616
const encryptedData = req.query.data;
1717

18+
console.log(callbackName)
19+
1820
// 解密数据
1921
const secretKey = "my-secret-key";
2022
const decryptedData = decryptData(encryptedData, secretKey);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "MIT",
88
"scripts": {
99
"pages": "node pages.js",
10-
"start": "node index.js"
10+
"start": "node server.js"
1111
},
1212
"dependencies": {
1313
"crypto-js": "^4.2.0",

pages.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ function copyFolderRecursive(source, target) {
3737

3838
// 执行复制
3939
copyFolderRecursive(sourceDir, targetDir);
40+
copyFolderRecursive("fake-api-server", targetDir);
4041
console.log('All files copied from public to dist!');

public/api/jsonp-request-encrypt

Whitespace-only changes.

0 commit comments

Comments
 (0)