Skip to content

怎么获取 nodejs saga 模式传的参数 #3

@hanxiaolong-github

Description

@hanxiaolong-github

例如 FireSaga 调用TransOut 我在router
.post('/api/TransOut',async (ctx, next) => {

console.log(ctx.req);
ctx.body = { dtm_result: 'SUCCESS' }

}) 怎么获取传的 { amount: 30 } 这个参数。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions