This commit is contained in:
Jay 2018-09-12 20:37:47 +08:00
parent 10c3e09014
commit ead2d6c11a

View File

@ -175,7 +175,7 @@ r.get('/channel/:chid/opay/bar', async (c, n) => {
text, values
})
if (priceResult.rowCount > 0) {
setting.total += priceResult.rows[0].total
setting.total += toInt(priceResult.rows[0].total, 0, 0)
} else {
setting.total += 0
}