File tree Expand file tree Collapse file tree
admin/src/main/scala/com/neu/service/risk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ import org.apache.pekko.http.scaladsl.server.Route
1818
1919import scala .concurrent .TimeoutException
2020import scala .util .control .NonFatal
21+ import java .net .URLEncoder
22+ import java .nio .charset .StandardCharsets
2123
2224class RiskService extends BaseService with DefaultJsonFormats with LazyLogging {
2325
@@ -62,7 +64,7 @@ class RiskService extends BaseService with DefaultJsonFormats with LazyLogging {
6264 else " "
6365 }${
6466 if (qf.isDefined)
65- s " &qf= ${qf.get}"
67+ s " &qf= ${URLEncoder .encode( qf.get, StandardCharsets . UTF_8 .toString) }"
6668 else " "
6769 }"
6870 RestClient .httpRequestWithHeader(url, GET , " " , tokenId)
@@ -107,7 +109,7 @@ class RiskService extends BaseService with DefaultJsonFormats with LazyLogging {
107109 else " "
108110 }${
109111 if (qf.isDefined)
110- s " &qf= ${qf.get}"
112+ s " &qf= ${URLEncoder .encode( qf.get, StandardCharsets . UTF_8 .toString) }"
111113 else " "
112114 }${
113115 if (scoretype.isDefined)
You can’t perform that action at this time.
0 commit comments