-
## DESC
9:37:39
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
require model文件不行。
用think.mongo也不行。
### ENV
OS Platform:
Node.js Version:6.11.3
ThinkJS Version:3
### code
我想在接收到订阅消息后执行mongo下的一个方法。或者在这里直接操作数据库也可以。
```js
var Redis = require…
-
## DESC
`think-model@1.0.5`: TypeError: Path must be a string. Received undefined
## ENV
Platform:
Node.js Version:
ThinkJS Version: 3.0
-
2.2中的this.http.getPayload()在3.0中如何使用?
-
## DESC
thinkjs3如何实现静态资源和json接口数据的gzip压缩?
### ENV
OS Platform: mac osx 11
Node.js Version: v8.5.0
ThinkJS Version: 3.1
### code
```js
const compress = require('koa-compress')
..…
-
## 我要向一个表中插入记录,然后根据发回的主键ID,继续向另一张表中插入(可能是多条)记录,
我使用手工方法操作事务,两个不同model用model.db复用了同一连接,在向``agent_store_detail`表插入的时候,insert语句中出现了不属于此表的字段,导致插入失败
### ENV
OS Platform: Windows
Node.js Version:8…
-
## DESC
无论是用this.action,还是this.emit 都会提示下面的信息
**emit method can only used in websocket request**
socket.io 官网有方法 io.sockets.xxxx
请教下如何拿到 io 对象呢?
## ENV
Platform: centos 7
Node.js …
-
## DESC
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
在使用`think.model('xxx').cache('test', {timeout: 3600*1000}).find();`查询缓存时如果用file缓存正常,切换成redis就报 `TypeError: Cannot read property '0' of null`
![524b3db6-6b38-4e4d-83e8-9a3aba227e16](https://u…
-
## DESC
一般服务器都支持的
https://github.com/jnotnull/thinkjs/commit/e2d7896c81b5cbb982ac56ec1c3c7675f2e946a4
## ENV
Platform:
Node.js Version:
ThinkJS Version: