exchange.go 390 B

12345678910111213141516
  1. package shop
  2. // 获取汇率信息
  3. //func GetCurrencyRateByIp(userId int, ipAddress string) string {
  4. // u := user.GetUserInfo(userId)
  5. // if u != nil {
  6. // if u.Currency != "" {
  7. // return u.Currency
  8. // }
  9. // }
  10. //
  11. // currency := coreClient.GetCurrency(userId, ipAddress)
  12. // log.Debug("getCurrency userId=%d ipAddress=%s currency=%s", userId, ipAddress, currency)
  13. //
  14. // return currency
  15. //}