-
## DESC
2.0 时候我是把 session 存储在 db 的,现在看了下貌似没有相关实现了?
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
### ENV
OS Platform:win7
Node.js Version:8.7
ThinkJS Version:3.2
### code
```
exports.model = {
type: 'mongoose',
common: {
logConnect: isDev,
logSql: isDev,…
-
getField第二个参数为true的时候,根据文档是直接返回字段的单个值,
但我发现如果没有找到的情况下,返回的却是[ ],个人认为这是个“很奇怪的设定”.
1. 从含义上来讲,既然是获取单个值,为什么在没找到的情况下返回的是个数组呢?
2. 这导致了一个困扰,接下来我该如何判断是否select到数据:
```js
let result = await xxxModel.where(……
-
跨域访问,火狐能通过测试。Chrome中有误。报
its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
查看了源码Context对象的确Content-Type 设置有误。
-
New config design, more for adapter:
- add common field, all common keys in common field
- remove adapter field, use type directly
- add handle field for adapter
- can reassign type in adapter, t…
-
## DESC
1、在controller->employee的indexAction中连续对department和employee表进行查询。
2、第二次查询到的结果居然是对department的数据而不是employee表的数据(两个表中的原始数据肯定是不一样的)!
### ENV
OS Platform:
Node.js Version:8.91
ThinkJS …
-
## DESC
项目部署本地访问正常,但是同样的配置部署上centos,上了测试服务器就出现302情况。
数据库数据加载不出来,而且页面加载比较慢。
后台返回的请求
[2017-09-25 01:52:26.352] [86524] [INFO] - GET /category/list 302 1ms
### ENV
OS Platform: centos 6.5…
-
最近测试,发现配置好后跨域上传图片无效,调用接口数据却是是正常的。也可能是我配置哪里错了
-
## DESC
## ENV
Platform:
Node.js Version:
ThinkJS Version:
-
## DESC
9:37:39
## ENV
Platform:
Node.js Version:
ThinkJS Version: