-
## DESC
我设置日志配置layouts,但没有达到预期结果。
按照官网配置 pattern: '%[[%d] [%z] [%p]%] - %m' ,期望的输出应该是:时间 进程id 日志等级 -内容
从打印结果来看我这个配置是没有生效的。
![conf](https://user-images.githubusercontent.com/17928085/29748341-a698c…
-
## DESC
用thinkjs开发的程序,运行一段时间就会报如下错误:
[2017-07-11 18:05:16.135] [INFO] - GET /xxx/list 200 97ms
fs.js:896
return binding.readdir(pathModule._makeLong(path), options.encoding);
…
-
## DESC
项目创建后执行 npm install时报错
![image](https://user-images.githubusercontent.com/6525044/29198429-97d4975a-7e76-11e7-9264-83432ebb7147.png)
## ENV
Platform: mac pro
Node.js Version:v…
-
## DESC
> 事务
```
const Base = require('./base.js');
module.exports = class extends Base {
async indexAction() {
let model = this.model('log')
try {
await model.startTrans()…
-
3.0怎么生成token以及每次请求的时候验证?
-
## DESC
Hello guys,
I would like to see an integration with Swagger as an API documentation for models.
What do you think about this feature, integration concept?
Regards.
P.S. by swagger I mean t…
-
## DESC
查询的代码
```js
async getByIds(ids) {
let where = {
id: ["IN", ids]
}
return this.model('goods').where(where).countSelect()
}
```
```
[2017-08-16 20:00:04.118] [8…
-
## DESC
建议logic层,自定义校验增加参数,来实现如 “中文提示” 这样的功能
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
- 正常按照最新 `thinkjs 3.0` 文档快速入门创建的项目
- 在启动的 `thinkjs 3.0` 项目情况下,在 `controller` 中新增一个名为 `test.js` 的文件,控制台即打出 `test is not defined` 的报错,然后,添加一个 `testAction` , 在浏览器尝试访问则显示 404即找不到该路由/方法
…
-
## DESC
更新后3.0创建的项目运行后,初始项目 http无log,访问无效,运行以前创建的项目是没有问题的,排除安全策略的问题。win10环境(nodejs8.4.0)测试后没有问题
## ENV
Platform:
Node.js Version:6.10.3
ThinkJS Version:think-cli@1.0.14