feature: App 逆向防护

This commit is contained in:
杭城小刘
2024-07-17 23:30:50 +08:00
parent 83fefff66b
commit e3fde7a1df
15 changed files with 380 additions and 38 deletions

View File

@@ -94,8 +94,8 @@ function sql_encode($sql){
header('content-type:text.html;charset=utf-8');
error_reporting(0);
require_once '../../model/PdoMySQL.class.php';
require_once '../../model/config.php';
require_once '.https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/model/PdoMySQL.class.php';
require_once '.https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/model/config.php';
require_once 'Response.php';
class HotelList
{

View File

@@ -66,13 +66,13 @@ module.exports = fetchCodeFiles
6. 为了方便测试,在 `package.json` 文件中的 `scripts` 下添加描述 `"test": "mocha"`
7. 为了更方便,我使用的是 iterm2在 .zshrc 文件里设置别名 `alias nt="node test"`
提升效率的配置 .zshrc 可以查看文章: [Mac 终端效率神技](./../Chapter7 - Geek Talk/7.10.md)
提升效率的配置 .zshrc 可以查看文章: [Mac 终端效率神技](https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/Chapter7 - Geek Talk/7.10.md)
上面开发代码的测试代码如下:
```javascript
// fetchCodeFiles.test.js
const fetchCodeFiles = require('./../src/fetchCodeFiles'),
const fetchCodeFiles = require('https://raw.githubusercontent.com/FantasticLBP/knowledge-kit/master/src/fetchCodeFiles'),
assert = require('assert')
describe("fetch all code files", () => {