Authored by 沈志敏

改为uid

... ... @@ -69,7 +69,7 @@ const component = {
uid: req.user.uid || 0
};
if (!req.user.id) {
if (!req.user.uid) {
res.json({
code: 403
});
... ...
... ... @@ -58,7 +58,7 @@ const exchange = {
*/
cancelApply(req, res, next) {
let id = req.body.id;
let uid = req.user.id;
let uid = req.user.uid;
exchangeModel.cancelApply(uid, id).then(result => {
return res.json(result);
... ...
... ... @@ -109,7 +109,7 @@ const order = {
});
},
coin: (req, res, next) => {
let uid = req.user.id;
let uid = req.user.uid;
orderModel.getCoins(uid).then(result => {
res.render('coin', {
... ... @@ -127,7 +127,7 @@ const order = {
* @returns {*|{read, write}}
*/
getCoinDetail: (req, res) => {
let uid = req.user.id;
let uid = req.user.uid;
let page = req.query.page;
let limit = req.query.limit;
... ...
... ... @@ -133,7 +133,7 @@ const refund = {
* @param res
*/
cancelApply(req, res) {
let uid = req.user.id;
let uid = req.user.uid;
let id = req.body.id;
uid = testUid;
... ...