Ver código fonte

通过外部接口每日自动获取当天汇率并保存

24282 2 anos atrás
pai
commit
0657e0f109

+ 1 - 1
hx-common/src/main/java/com/fjhx/common/utils/ExchangeRateUtil.java

@@ -194,8 +194,8 @@ public class ExchangeRateUtil {
         try {
             String body = HttpRequest.get("http://op.juhe.cn/onebox/exchange/currency")
                     .header("Content-Type", "application/x-www-form-urlencoded")
-                    .form("to", "CNY")
                     .form("from", code)
+                    .form("to", "CNY")
                     .form("version", "2")
                     .form("key", key)
                     .execute()