fix start amount

This commit is contained in:
Jay 2018-08-26 21:37:19 +08:00
parent aacba6024f
commit 098bcff5a4

View File

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