Showing
1 changed file
with
2 additions
and
2 deletions
@@ -42,11 +42,11 @@ exports.first = (req, res) => { | @@ -42,11 +42,11 @@ exports.first = (req, res) => { | ||
42 | }).then(function(couponData) { | 42 | }).then(function(couponData) { |
43 | var couponInfo = JSON.parse(couponData[0]); | 43 | var couponInfo = JSON.parse(couponData[0]); |
44 | 44 | ||
45 | - if (couponInfo.code === 201) { | 45 | + if (couponInfo.code === 401) { |
46 | renderData.geted = true; | 46 | renderData.geted = true; |
47 | } | 47 | } |
48 | 48 | ||
49 | - if (couponInfo.code !== 201 && couponInfo.code !== 200) { | 49 | + if (couponInfo.code !== 401 && couponInfo.code !== 200) { |
50 | renderData.fail = true; | 50 | renderData.fail = true; |
51 | } | 51 | } |
52 | 52 |
-
Please register or login to post a comment