...
|
...
|
@@ -8,7 +8,7 @@ const Promise = require('bluebird'); |
|
|
const co = Promise.coroutine;
|
|
|
const _ = require('lodash');
|
|
|
const userApi = require('./user-api');
|
|
|
const currencyApi = require('./currency-data');
|
|
|
const currencyApi = require('./currency-api');
|
|
|
|
|
|
/**
|
|
|
* 礼品卡页面
|
...
|
...
|
@@ -51,15 +51,7 @@ exports.exchange = (req, params, uid) => { |
|
|
data.giftCardCode1 = _.trim(params.giftCardCode1 || '');
|
|
|
data.giftCardCode2 = _.trim(params.giftCardCode2 || '');
|
|
|
data.giftCardCode3 = _.trim(params.giftCardCode3 || '');
|
|
|
data.captchaCode = _.trim(params.verifyCode || '').toLowerCase();
|
|
|
|
|
|
if (data.captchaCode && data.captchaCode !== req.session.captcha) {
|
|
|
return {
|
|
|
code: 400,
|
|
|
message: '图形验证码不正确'
|
|
|
};
|
|
|
|
|
|
}
|
|
|
let respData = yield userApi.exchangeGift(data, uid);
|
|
|
|
|
|
return respData;
|
...
|
...
|
|