-
## DESC
使用Model-Relation的HAS_MANY进行联查时,必须在关系中的查询字段包含fKey,否则无法显示联查结果。例如:
```
get relation () {
return {
user: {
type : ModelRelation.HAS_MANY,
…
-
## DESC
参考think-mongoose的例子在model中自定义了一个方法。但是调用的时候报错说方法不存在。
### ENV
OS Platform: centos 7.1
Node.js Version: 8.9.1 LTS
ThinkJS Version: 3.2.4
### code
```js
// grouping.js
// mo…
-
## DESC
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:
### code
```js
// your code here
```
### error message
```
// your error message here
```
### more descrip…
-
## DESC
### ENV
OS Platform:
mac
Node.js Version:
8.9.0
ThinkJS Version:
3.2.5
### code
```js
import { think } from 'thinkjs'
import Base from './base.js'
export default class extend…
-
-
readme示例中好像是基于express框架?
但是我用的是thinkjs框架,支付是成功了,
但是该怎么接收到微信推送的支付结果通知?
```
async paybackAction() {
let wxPayCfg = {
// ....
};
middleware(wxPayCfg)…
-
## DESC
### ENV
OS Platform: Mac
Node.js Version: v9.2.1
ThinkJS Version: 2.2.1
### code
```js
// your code here
__call() {
const method = this.method.toLowerCase();
if (…
-
## DESC
### ENV
OS Platform:
Node.js Version:
ThinkJS Version:
### code
```js
return this.success(data);
//目前前端
{
errno: 0,
errmsg: '',
data: ...
}
//想实现的
{
err…
-
## DESC
thinkjs官方demo https://github.com/thinkjs/think-demo/tree/master/src/controller 中的websocket运行时报Error during WebSocket handshake: Unexpected response code: 400
### ENV
OS Platform:win7_64
…
-
admin界面可以进入,但是之间进入blog主页显示500错误,请问怎么解决?