Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bigertech/Binding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

13 Commits

Repository files navigation

Binding

##数据库配置

/config.js

修改以下数据库配置,并确保database与你的数据库名字相同

 connections: {
 myLocalMySql: {
 adapter: 'mysql',
 host: '127.0.0.1',
 user: 'root',
 password: '',
 database: 'bg_binding'
 }
 },

##路由说明

###绑定订单编号与QQ号

###URL

POST /api/binding

###参数

参数名 是否必须 类型 说明
order_num Yes String 订单编号
qq Yes String QQ号

###返回说明

成功返回binding对象

[
 {
 "order_num": "6577818241",
 "qq": "1231231112",
 "isUsed": true,
 "id": 10,
 "createdAt": "2014-12-24T06:50:27.000Z",
 "updatedAt": "2014-12-24T09:49:57.000Z"
 }
]

失败返回错误信息

{
 "err": "订单编号已被绑定"
}

##路由测试

mocha test/test.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /