Authored by ccbikai(👎🏻🍜)

Merge remote-tracking branch 'origin/hotfix/student'

... ... @@ -61,7 +61,7 @@ exports.getCoupon = (req, res, next) => {
// 获取信息成功
couponData.ordercode = ordercode;
}
console.log(couponData);
// console.log(couponData);
res.json({
result: couponData
});
... ... @@ -94,7 +94,7 @@ exports.verify = (req, res, next) => {
// 获取信息成功
couponData.ordercode = ordercode;
}
console.log(couponData);
// console.log(couponData);
res.json({
result: couponData
});
... ...
... ... @@ -138,7 +138,7 @@ const getPlatForm = (req) => {
return co(function*() {
let data = yield getUser(yoho.uid);
yoho.isStudent = data.data && data.data.vip_info && data.data.vip_info.is_student ? true : false;
yoho.isStudent = data && data.data && data.data.vip_info && data.data.vip_info.is_student ? true : false;
// yoho.isStudent = false;
// console.log(yoho);
... ...