mirror of
https://github.com/NohamR/knowledge-kit.git
synced 2026-05-25 04:17:17 +00:00
feature: App 逆向防护
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user