Merge branch 'hotfix/vip-day'
Showing
1 changed file
with
8 additions
and
6 deletions
@@ -8,11 +8,13 @@ const co = require('bluebird').coroutine; | @@ -8,11 +8,13 @@ const co = require('bluebird').coroutine; | ||
8 | 8 | ||
9 | 9 | ||
10 | function humanNum_wan(num) { | 10 | function humanNum_wan(num) { |
11 | - if (num > 9999) { | ||
12 | - num = (num / 10000).toFixed(2) + '万' | ||
13 | - } | ||
14 | - | ||
15 | return num; | 11 | return num; |
12 | + | ||
13 | + // if (num > 9999) { | ||
14 | + // num = (num / 10000).toFixed(2) + '万' | ||
15 | + // } | ||
16 | + | ||
17 | + // return num; | ||
16 | } | 18 | } |
17 | 19 | ||
18 | exports.beforeIn = (req, res, next) => { | 20 | exports.beforeIn = (req, res, next) => { |
@@ -87,7 +89,7 @@ exports.crazyWheel = (req, res, next) => { | @@ -87,7 +89,7 @@ exports.crazyWheel = (req, res, next) => { | ||
87 | } | 89 | } |
88 | 90 | ||
89 | vipDayModel.getJoinNum(1).then(result => { | 91 | vipDayModel.getJoinNum(1).then(result => { |
90 | - let joins = result && result.data || 0; | 92 | + let joins = result && result.data || 0; |
91 | 93 | ||
92 | res.render('vip_day/crazy_wheel', { | 94 | res.render('vip_day/crazy_wheel', { |
93 | title: '疯狂大转盘', | 95 | title: '疯狂大转盘', |
@@ -111,7 +113,7 @@ exports.crazyLuck = (req, res, next) => { | @@ -111,7 +113,7 @@ exports.crazyLuck = (req, res, next) => { | ||
111 | let joinNum = yield vipDayModel.getJoinNum(2); | 113 | let joinNum = yield vipDayModel.getJoinNum(2); |
112 | 114 | ||
113 | coins = (coins && coins.data && coins.data.total) || 0; | 115 | coins = (coins && coins.data && coins.data.total) || 0; |
114 | - joinNum = (joinNum && joinNum.data) || 0 | 116 | + joinNum = (joinNum && joinNum.data) || 0; |
115 | 117 | ||
116 | res.render('vip_day/crazy_luck', { | 118 | res.render('vip_day/crazy_luck', { |
117 | title: '拼手气', | 119 | title: '拼手气', |
-
Please register or login to post a comment