Merge remote-tracking branch 'origin/hotfix/student'
Showing
2 changed files
with
3 additions
and
3 deletions
@@ -61,7 +61,7 @@ exports.getCoupon = (req, res, next) => { | @@ -61,7 +61,7 @@ exports.getCoupon = (req, res, next) => { | ||
61 | // 获取信息成功 | 61 | // 获取信息成功 |
62 | couponData.ordercode = ordercode; | 62 | couponData.ordercode = ordercode; |
63 | } | 63 | } |
64 | - console.log(couponData); | 64 | + // console.log(couponData); |
65 | res.json({ | 65 | res.json({ |
66 | result: couponData | 66 | result: couponData |
67 | }); | 67 | }); |
@@ -94,7 +94,7 @@ exports.verify = (req, res, next) => { | @@ -94,7 +94,7 @@ exports.verify = (req, res, next) => { | ||
94 | // 获取信息成功 | 94 | // 获取信息成功 |
95 | couponData.ordercode = ordercode; | 95 | couponData.ordercode = ordercode; |
96 | } | 96 | } |
97 | - console.log(couponData); | 97 | + // console.log(couponData); |
98 | res.json({ | 98 | res.json({ |
99 | result: couponData | 99 | result: couponData |
100 | }); | 100 | }); |
@@ -138,7 +138,7 @@ const getPlatForm = (req) => { | @@ -138,7 +138,7 @@ const getPlatForm = (req) => { | ||
138 | return co(function*() { | 138 | return co(function*() { |
139 | let data = yield getUser(yoho.uid); | 139 | let data = yield getUser(yoho.uid); |
140 | 140 | ||
141 | - yoho.isStudent = data.data && data.data.vip_info && data.data.vip_info.is_student ? true : false; | 141 | + yoho.isStudent = data && data.data && data.data.vip_info && data.data.vip_info.is_student ? true : false; |
142 | 142 | ||
143 | // yoho.isStudent = false; | 143 | // yoho.isStudent = false; |
144 | // console.log(yoho); | 144 | // console.log(yoho); |
-
Please register or login to post a comment