...
|
...
|
@@ -42,11 +42,11 @@ exports.first = (req, res) => { |
|
|
}).then(function(couponData) {
|
|
|
var couponInfo = JSON.parse(couponData[0]);
|
|
|
|
|
|
if (couponInfo.code === 201) {
|
|
|
if (couponInfo.code === 401) {
|
|
|
renderData.geted = true;
|
|
|
}
|
|
|
|
|
|
if (couponInfo.code !== 201 && couponInfo.code !== 200) {
|
|
|
if (couponInfo.code !== 401 && couponInfo.code !== 200) {
|
|
|
renderData.fail = true;
|
|
|
}
|
|
|
|
...
|
...
|
|