-
## DESC
Mongo部分代码有笔误
### code
文档中:
```js
module.exports = class extends think.Mongo {
async getList() {
// 如果含有子目录,那么这里带上子目录,如: this.mongo('front/article')
const article = this.mon…
l0ca1 updated
6 years ago
-
## mysql数据库频繁连接的问题
### ENV
OS Platform: CentOS 7.4 64bit (阿里云的 ECS 云服务器)
Node.js Version: 8.11.4
ThinkJS Version: 2.2.24
PM2 Version: 3.1.2 (没有启用 Cluster)
MySQL Version: 5.7 (阿里云的 RD…
-
## DESC
### ENV
OS Platform: windows
Node.js Version:8.3
ThinkJS Version:3.2
### worker.js
```js
think.beforeStartServer( async() =>{
const $config = {"name":"哈哈","name2":"呵呵"};
…
-
## DESC
logic效验数组参数,前端不传该参数时扔读取该参数的长度
报Cannot read property 'length' of undefined错误
required为false
### ENV
OS Platform: windows 10
Node.js Version: 8.11.3
ThinkJS Version: 3.2.8
### c…
-
think-cache-redis有提供发布和订阅吗
-
## DESC
访问 `/xxx.{非html的后缀}` 下不存在的文件时不显示404页面, 如:
-
-
-
-
## ENV
Platform:
Node.js Version: 7.8.0
ThinkJS Version: 2.2.21
xuexb updated
6 years ago
-
## DESC
### ENV
OS Platform: windows10
Node.js Version: 8.11.1
ThinkJS Version: 3.2.6
### code
```js
middleware.js
//注释掉publicPath,让目录不带static
{
handle: 'resource',
…
-
## DESC
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:
### code
```js
// your code here
```
### error message
```
// your error message here
```
### more descrip…
-
定时任务crontab,可以通过GET方式定时调用restful接口吗?crontab默认是CLI类型,可以设置为GET或者POST吗?
-
## DESC
### ENV
OS Platform:
window10
Node.js Version:
8.11.3
ThinkJS Version:
3.0
### code
```js
if (brandFile !== '') {
if (think.isEmpty(brandFile)) {
return this.fa…