refactor billing api

This commit is contained in:
jysperm
2014-09-08 02:13:25 +08:00
parent f9ec76d763
commit e430a7c1da
2 changed files with 72 additions and 57 deletions

View File

@@ -19,7 +19,7 @@ genAddress = (bitcoin_secret, callback) ->
throw err if err
callback body.address
# @param currency: CNY, USD, JPY
# @param currency: CNY, USD, JPY etc.
# @param callback(rate)
getExchangeRate = (currency, callback) ->
REDIS_KEY = "#{config.redis.prefix}:[bitcoin.getExchangeRate]:#{currency}"