-
## 根据官方文档,crontab配置中,type配置默认是one,也就是只在一个子进程执行。我按照官网文档写的代码,但是执行了多次。
### ENV
OS Platform:mac
Node.js Version:10
ThinkJS Version:3
### code
```js
module.exports = [{
interval: '10s…
-
## DESC
### ENV
OS Platform: ubuntukylin2004
Node.js Version:12.10
ThinkJS Version:2.2.9
### code
```js
that.model('table', 'test').where({ 'JSON_EXTRACT(groups,"$[*].name")': '' })…
-
## DESC
### ENV
OS Platform:
Windows 10 1908
Node.js Version:
v12.14.0 LTS
ThinkJS Version:
3.2.8
### code
```js
// your code here
```
### error message
```
// your error messa…
-
## DESC
### ENV
OS Platform:windows
Node.js Version:8.12
ThinkJS Version:3.28
第一、
无论是开发环境还是生产环境,都出现这样的问题:当worker设置为0,就会启动多个Node进程,但是这样网站就打不开了。浏览器访问http://127.0.0.1:8360,就无限转圈。
将worker…
-
我添加这条语句就会报错
module.exports = class extends think.Mongo {
}
Class extends value undefined is not a constructor or null
我用的是mongdb相关配置配置好了
-
## DESC
### ENV
OS Platform:
Node.js Version: 10.0以上
ThinkJS Version: 3.0
### code
```js
// controller.js 文件类中
constructor(...args) {
super(args);
}
getAction() {
// uid为真实的h…
-
## DESC
### ENV
OS Platform: mac
Node.js Version: 8.11.4
ThinkJS Version: 3.0
### code
```js
// src/controller/api/v2/test
module.exports = class extends think.BaseRest {
asyn…
-
我理解的是先比较长度,长度更长的就大,如果长度一样,就逐位比较,如果都是数字组成的字符串,会转为数字 直接比较,如果不是,会把字符转为ASCII码比较, 请问这样对吗
-
## DESC
### ENV
OS Platform:windows
Node.js Version:8.1.2
ThinkJS Version:3.28
### code
```js
process.send('think-cluster-reload-workers'); // 给主进程发送重启的指令
```
### error message
…
-
## DESC
model.addMany 参数{ignore: true}/{replace: true}无效,插入语句仍只是INSERT INTO而不会变成INSERT IGNORE INTO 或 REPLACE INTO
### ENV
OS Platform: mac os 10.14.5
Node.js Version: v10.15.3
ThinkJS Ver…