-
## DESC
在写单元测试时,测试controller时,action中调用this.display(),报错:Error: can't find template file
project/mockserver-new/view///.nunj`
完整代码如下:
```js
'use strict';
var assert = require('assert');
…
-
## DESC
2017/09/12 thinkjs升级最新版本
按照git的配置配好socketio 启动提示没有 socket.io-redis
`Cannot find module 'socket.io-redis'`
于是
`npm install socket.io-redis`
再次启动
```
[2017-09-12 16:14:07.086] [9052] [E…
ghost updated
7 years ago
-
## DESC
```
[2017-08-17 16:26:12.585] [6358] [INFO] - SQL: SELECT * FROM `mt_shop_design` WHERE ( `shop_id` = 117981 ) LIMIT 1, Time: 139ms
[2017-08-17 16:26:12.586] [6358] [DEBUG] - {}
```
…
-
## DESC
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
Since I use JWT token middle-ware, doesn't need the builtin session.(Because I can't)
BTW, I think session should implement as a middle-ware, split as transporter(cookie, header) and storage…
-
怎么添加redis客户端,支持redis各种操作
## ENV
Platform:
Node.js Version:
ThinkJS Version:
phpcs updated
7 years ago
-
## DESC
ThinkJS@3.0 中:
1、如果项目中我要调用新建common.js中写一些全局公共的方法,比如API数据加减密方法,common.js建议放到哪里?又该怎么引入调用?
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
项目部署子目录 怎么部署呀 尝试很多方法都不行。。
比如
根站点一个项目:baidu.com
子目录一个新的项目站点:baidu.com/test/
```nginx
server {
listen 80;
server_name bd.66new.cn;
root /srv/Meeting-Scene/www;
set $node_po…
-
最近在从0开始自学 nodejs ,打算用 thinkjs 做个很小的工具自用。
如 thinkjs 3.0 能在6月份出来,我就等 3.0 了
-
我的代码是这样:
```js
wxpay.createUnifiedOrder(orderInfo, (err,rst)=>{
console.log(err);
console.log(rst);
});
```
然后输出错误:
```
TypeError: Cannot read property…